BetterReflectionTest\Reflection\ReflectionClassTest::testGetStaticPropertyValueGetsValue PHP Method

testGetStaticPropertyValueGetsValue() public method

    public function testGetStaticPropertyValueGetsValue()
    {
        $staticPropertyGetSetFixture = __DIR__ . '/../Fixture/StaticPropertyGetSet.php';
        require_once $staticPropertyGetSetFixture;
        $classInfo = (new ClassReflector(new SingleFileSourceLocator($staticPropertyGetSetFixture)))->reflect(StaticPropertyGetSet\Bar::class);
        StaticPropertyGetSet\Bar::$baz = 'test value';
        $this->assertSame('test value', $classInfo->getStaticPropertyValue('baz'));
    }
ReflectionClassTest