BetterReflectionTest\Reflector\LocatorTest::testReflectThrowsExeptionWhenClassNotFoundButNodesExist PHP Method

testReflectThrowsExeptionWhenClassNotFoundButNodesExist() public method

    public function testReflectThrowsExeptionWhenClassNotFoundButNodesExist()
    {
        $php = "<?php\n        namespace Foo;\n        echo 'Hello world';\n        ";
        $this->expectException(IdentifierNotFound::class);
        (new Locator())->findReflection(new ClassReflector(new StringSourceLocator($php)), new LocatedSource($php, null), $this->getIdentifier('Foo', IdentifierType::IDENTIFIER_CLASS));
    }