BetterReflectionTest\Reflection\ReflectionClassTest::testHasProperty PHP 메소드

testHasProperty() 공개 메소드

public testHasProperty ( )
    public function testHasProperty()
    {
        $reflector = new ClassReflector($this->getComposerLocator());
        $classInfo = $reflector->reflect('\\BetterReflectionTest\\Fixture\\ExampleClass');
        $this->assertFalse($classInfo->hasProperty('aNonExistentProperty'));
        $this->assertTrue($classInfo->hasProperty('publicProperty'));
    }
ReflectionClassTest