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