BetterReflectionTest\Reflector\LocatorTest::testReflectingWithinNamespace PHP Method

testReflectingWithinNamespace() public method

    public function testReflectingWithinNamespace()
    {
        $php = '<?php
        namespace Foo;
        class Bar {}
        ';
        $classInfo = (new Locator())->findReflection(new ClassReflector(new StringSourceLocator($php)), new LocatedSource($php, null), $this->getIdentifier('Foo\\Bar', IdentifierType::IDENTIFIER_CLASS));
        $this->assertInstanceOf(ReflectionClass::class, $classInfo);
    }