From bc035a4a953ef07a7e27a90da01a25ee9d21c376 Mon Sep 17 00:00:00 2001 From: notona Date: Mon, 20 Feb 2017 12:28:16 +0900 Subject: [PATCH] add more tests --- tests/Valitron/ValidateTest.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/Valitron/ValidateTest.php b/tests/Valitron/ValidateTest.php index e3ae2b0..ee3b34f 100644 --- a/tests/Valitron/ValidateTest.php +++ b/tests/Valitron/ValidateTest.php @@ -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'));