/** * Override exists to ensure the object is a RedBeanModel * @param RedBeanModel $model the model being validated * @param string $attribute the attribute being validated */ protected function validateAttribute($object, $attribute) { assert('$object instanceof RedBeanModel'); parent::validateAttribute($object, $attribute); }
/** * @dataProvider invalidArrays * @param mixed $value * @param string|null $className * @param boolean $allowNull * @expectedException \SlevomatZboziApi\Type\TypeValidationFailedException */ public function testCheckArrayThrowsExceptionForInvalidArrays($value, $className = null, $allowNull = false) { TypeValidator::checkArray($value, $className, $allowNull); }