Make sure error messages get tested too

This commit is contained in:
Willem Wollebrants 2017-07-18 20:54:29 +02:00
parent c3d644e1d7
commit b29fbc50ff

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