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