You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
377 B

<?php
namespace yiiunit\framework\validators;
/**
* @codeCoverageIgnore
*/
class FakedValidationModel
{
public $errors = array();
public function getAttributeLabel($attr)
{
return 'Attr-Label: '.$attr;
}
public function addError($attribute, $message)
{
$this->errors[$attribute] = $message;
}
public function resetErrors()
{
$this->errors = array();
}
}