mirror of
https://github.com/vlucas/valitron.git
synced 2025-12-30 23:01:52 +00:00
Make sure error messages get tested too
This commit is contained in:
parent
c3d644e1d7
commit
b29fbc50ff
@ -16,7 +16,7 @@ class ErrorMessagesTest extends BaseTestCase
|
||||
$v = new Validator(array('num' => 5));
|
||||
$v->rule('min', 'num', 6);
|
||||
$v->validate();
|
||||
$this->assertSame(array("Num must be greater than 6"), $v->errors('num'));
|
||||
$this->assertSame(array("Num must be at least 6"), $v->errors('num'));
|
||||
}
|
||||
|
||||
public function testCustomErrorMessage()
|
||||
Loading…
x
Reference in New Issue
Block a user