workspace = new Server\Workspace($project, $client); // create two documents $project->getDocument('file:///document1.php')->updateContent("getDocument('file:///document2.php')->updateContent("workspace->symbol('f'); $this->assertEquals([ [ 'name' => 'foo', 'kind' => SymbolKind::FUNCTION, 'location' => [ 'uri' => 'file:///document1.php', 'range' => [ 'start' => [ 'line' => 1, 'character' => 0 ], 'end' => [ 'line' => 1, 'character' => 17 ] ] ], 'containerName' => null ], [ 'name' => 'frob', 'kind' => SymbolKind::FUNCTION, 'location' => [ 'uri' => 'file:///document2.php', 'range' => [ 'start' => [ 'line' => 2, 'character' => 0 ], 'end' => [ 'line' => 2, 'character' => 18 ] ] ], 'containerName' => null ] ], json_decode(json_encode($result), true)); } }