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

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

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