mirror of
https://github.com/vlucas/valitron.git
synced 2025-12-31 07:01:54 +00:00
Merge pull request #211 from vlucas/errormsg
Make sure error messages get tested too
This commit is contained in:
commit
1e98c97ca2
@ -16,7 +16,7 @@ class ErrorMessagesTest extends BaseTestCase
|
|||||||
$v = new Validator(array('num' => 5));
|
$v = new Validator(array('num' => 5));
|
||||||
$v->rule('min', 'num', 6);
|
$v->rule('min', 'num', 6);
|
||||||
$v->validate();
|
$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()
|
public function testCustomErrorMessage()
|
||||||
Loading…
x
Reference in New Issue
Block a user