BetterReflectionTest\Reflection\ReflectionClassTest::testGetStaticPropertyValueThrowsExceptionWhenClassDoesNotExist PHP Method

testGetStaticPropertyValueThrowsExceptionWhenClassDoesNotExist() public method

    public function testGetStaticPropertyValueThrowsExceptionWhenClassDoesNotExist()
    {
        $php = '<?php
            class Foo {}
        ';
        $classInfo = (new ClassReflector(new StringSourceLocator($php)))->reflect('Foo');
        $this->expectException(ClassDoesNotExist::class);
        $classInfo->getStaticPropertyValue('foo');
    }
ReflectionClassTest