BetterReflectionTest\Reflection\ReflectionPropertyTest::testVisibilityMethods PHP Method

testVisibilityMethods() public method

    public function testVisibilityMethods()
    {
        $classInfo = $this->reflector->reflect('\\BetterReflectionTest\\Fixture\\ExampleClass');
        $privateProp = $classInfo->getProperty('privateProperty');
        $this->assertTrue($privateProp->isPrivate());
        $protectedProp = $classInfo->getProperty('protectedProperty');
        $this->assertTrue($protectedProp->isProtected());
        $publicProp = $classInfo->getProperty('publicProperty');
        $this->assertTrue($publicProp->isPublic());
    }