Kraken\Test\TUnit::existsProtectedProperty PHP Method

existsProtectedProperty() public method

Check if protected property exists.
public existsProtectedProperty ( object $object, string $property ) : boolean
$object object
$property string
return boolean
    public function existsProtectedProperty($object, $property)
    {
        $reflection = new ReflectionClass($object);
        return $reflection->hasProperty($property);
    }