BetterReflectionTest\Reflection\ReflectionClassTest::testGetStaticPropertyValueThrowsExceptionWhenPropertyDoesNotExist PHP Метод

testGetStaticPropertyValueThrowsExceptionWhenPropertyDoesNotExist() публичный Метод

    public function testGetStaticPropertyValueThrowsExceptionWhenPropertyDoesNotExist()
    {
        $staticPropertyGetSetFixture = __DIR__ . '/../Fixture/StaticPropertyGetSet.php';
        require_once $staticPropertyGetSetFixture;
        $classInfo = (new ClassReflector(new SingleFileSourceLocator($staticPropertyGetSetFixture)))->reflect(StaticPropertyGetSet\Foo::class);
        $this->expectException(PropertyDoesNotExist::class);
        $classInfo->getStaticPropertyValue('foo');
    }
ReflectionClassTest