project = new Project(new LanguageClient(new MockProtocolStream())); } public function testParsesVariableVariables() { $document = $this->project->getDocument('whatever'); $document->updateContent("getSymbols(); $this->assertEquals([], json_decode(json_encode($symbols), true)); } public function testGetNodeAtPosition() { $document = $this->project->getDocument('whatever'); $document->updateContent("getNodeAtPosition(new Position(1, 13)); $this->assertInstanceOf(Node\Name\FullyQualified::class, $node); $this->assertEquals('SomeClass', (string)$node); } }