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

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

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