public function testCanReflectEvaledInterface()
{
$interfaceName = uniqid('foo');
eval('interface ' . $interfaceName . ' {function foo();}');
$locator = new EvaledCodeSourceLocator();
$reflection = $locator->locateIdentifier($this->getMockReflector(), new Identifier($interfaceName, new IdentifierType(IdentifierType::IDENTIFIER_CLASS)));
$this->assertInstanceOf(EvaledLocatedSource::class, $reflection->getLocatedSource());
$this->assertStringMatchesFormat('%Ainterface%A' . $interfaceName . '%A', $reflection->getLocatedSource()->getSource());
}