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

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

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