@@ -168,6 +168,7 @@ public function testLengthBetween()
168
168
169
169
$ this ->assertFalse (Validation::lengthBetween ('abcdefg ' , 1 , 6 ));
170
170
$ this ->assertFalse (Validation::lengthBetween ('ÆΔΩЖÇ ' , 1 , 3 ));
171
+ $ this ->assertFalse (Validation::lengthBetween (1 , 1 , 3 ));
171
172
}
172
173
173
174
/**
@@ -619,6 +620,8 @@ public function testCc()
619
620
$ this ->assertTrue (Validation::cc ('869958670174621 ' , ['voyager ' ]));
620
621
$ this ->assertTrue (Validation::cc ('869921250068209 ' , ['voyager ' ]));
621
622
$ this ->assertTrue (Validation::cc ('869972521242198 ' , ['voyager ' ]));
623
+ //Credit card number should not pass as array
624
+ $ this ->assertFalse (Validation::cc (['869972521242198 ' ], ['voyager ' ]));
622
625
}
623
626
624
627
/**
@@ -1960,6 +1963,7 @@ public function testEmail()
1960
1963
$ this ->assertFalse (Validation::email ('abc@yahoo!.com ' ));
1961
1964
$ this ->assertFalse (Validation::email ('abc@example_underscored.com ' ));
1962
1965
$ this ->assertFalse (Validation::email ('raw@test.ra.ru....com ' ));
1966
+ $ this ->assertFalse (Validation::email (1 ));
1963
1967
}
1964
1968
1965
1969
/**
@@ -2813,6 +2817,9 @@ public function testContainNonAlphaNumeric()
2813
2817
$ this ->assertFalse (Validation::containsNonAlphaNumeric ('abcdef## ' , 3 ));
2814
2818
$ this ->assertFalse (Validation::containsNonAlphaNumeric ('abc##def ' , 3 ));
2815
2819
$ this ->assertFalse (Validation::containsNonAlphaNumeric ('ab#cd#ef ' , 3 ));
2820
+
2821
+ //Non alpha numeric should not pass as array
2822
+ $ this ->assertFalse (Validation::containsNonAlphaNumeric (['abc# ' ]));
2816
2823
}
2817
2824
2818
2825
/**
0 commit comments