Example #1
0
 public function __construct($options = [])
 {
     parent::__construct($options);
 }
Example #2
0
 /**
  * Ensure that we get no error messages before running validation
  */
 public function testGetErrorMessagesAfterValidationFailure()
 {
     $validator = new Length(2);
     $validator->isValid('coderavine');
     $this->assertCount(1, $validator->errors());
 }