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.
		
		
		
		
			
				
					20 lines
				
				311 B
			
		
		
			
		
	
	
					20 lines
				
				311 B
			| 
											12 years ago
										 | <?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;
 | ||
|  | 	}
 | ||
|  | }
 |