예제 #1
0
 public function testCustomMessagesFromValidatorConfiguration()
 {
     $validator = new Validator();
     $validator->validate("email @gmail.com", v::email());
     $errors = $validator->getViolations(array('email' => "'{{input}}' deve conter um email válido"));
     $this->assertEquals($errors['email'], "'email @gmail.com' deve conter um email válido");
 }