mirror of
https://github.com/vlucas/valitron.git
synced 2025-12-30 23:01:52 +00:00
add more tests
This commit is contained in:
parent
7c990e39ef
commit
bc035a4a95
@ -139,6 +139,14 @@ class ValidateTest extends BaseTestCase
|
||||
$this->assertFalse($v->validate());
|
||||
}
|
||||
|
||||
public function testIntegerWithMaxValidation()
|
||||
{
|
||||
$v = new Validator(array('num' => '4212341569'));
|
||||
$v->rule('integer', 'num');
|
||||
$v->rule('max', 'num', 1000);
|
||||
$this->assertFalse($v->validate());
|
||||
}
|
||||
|
||||
public function testLengthValid()
|
||||
{
|
||||
$v = new Validator(array('str' => 'happy'));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user