BetterReflectionTest\Reflection\ReflectionObjectTest::testReflectionWorksWithEvaledClasses PHP Method

testReflectionWorksWithEvaledClasses() public method

    public function testReflectionWorksWithEvaledClasses()
    {
        $foo = new ClassForHinting();
        $classInfo = ReflectionObject::createFromInstance($foo);
        $this->assertInstanceOf(ReflectionObject::class, $classInfo);
        $this->assertSame(ClassForHinting::class, $classInfo->getName());
        $this->assertFalse($classInfo->isInternal());
    }