/** * @covers ::getFunctionName */ public function testGetFunctionNameUnknown() { $file = new File($this->createMockProject(), 'filename', ''); $method = $this->getMockForAbstractClass('PhpParser\\Node'); $this->assertEquals('(unknown function)', $file->getFunctionName($method)); }