protected function checkRules($object)
    {
        $this->assertTrue(property_exists($object, 'rules'));

        $this->assertInternalType('array', $object->rules);

        foreach ($object->rules as $rule) {
            $this->checkRule($rule);
        }
    }
protected function checkRules($object)
    {
        $this->assertTrue(property_exists($object, 'rules'));

        $this->assertInternalType('array', $object->rules);

        foreach ($object->rules as $rule) {
            $this->checkRule($rule);
        }
    }
protected function checkRules ( $ object ) { $ this -> assertTrue ( property_exists ( $ object , 'rules' ) ) ; $ this -> assertInternalType ( 'array' , $ object -> rules ) ; foreach ( $ object -> rules as $ rule ) { $ this -> checkRule ( $ rule ) ; } }
Check the rules on the given object are valid.

@param object $object

@return void
Check the rules on the given object are valid .