Merge pull request #211 from vlucas/errormsg

Make sure error messages get tested too
This commit is contained in:
Willem Wollebrants 2017-07-18 20:57:38 +02:00 committed by GitHub
commit 1e98c97ca2

View File

@ -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()