peterkinamo
e5ae2c9a5f
ipv4 and ipv6 rule and tests added
2018-08-03 13:02:21 +02:00
peterkinamo
971da213a3
Ascii rule added
...
Ascii unit test added
2018-08-03 12:28:23 +02:00
peter279k
9ec218f031
Fix count() countable error message in php7.2
2018-04-14 16:56:19 +08:00
Willem Wollebrants
b6589e85ea
Strict integer rule
...
Fixed strict integer rule and added more integer unit tests
2018-03-29 20:57:51 +02:00
Willem Wollebrants
8abb9b7220
Merge pull request #237 from mangopeaches/nested-equals-different
...
added nested array support for validateEquals and validateDifferent
2018-02-07 17:35:13 +01:00
Tom Breese
19a1e123bd
updating tests for 5.3 compatible arrays
2018-02-06 23:10:20 -05:00
Tom Breese
32dec57f69
adding nested different both unser required test
2018-02-06 23:05:25 -05:00
Tom Breese
06d1740c32
adding tests for nulls/not set values for nested and not nested equals and different methods
2018-02-06 23:02:03 -05:00
Tom Breese
7c94b2ae5a
added support for nested arrays in validateEquals and validateDifferent validation methods
2018-02-04 13:24:47 -05:00
Willem Wollebrants
7dcc8a5089
add test for new emailDNS validator
2018-01-31 16:19:05 +01:00
Willem Wollebrants
d1563d520f
Make sure testRequiredAllowEmpty() tests 2 different usages for required rule
2017-12-02 21:28:13 +01:00
Dennis Meckel
eb436a382f
Fixed strict integer rule and added more integer unit tests
2017-10-13 19:39:59 +02:00
Willem Wollebrants
4cc030c68a
validate fields that are required, but may have empty or null values. #208
2017-08-28 21:52:21 +02:00
Willem Wollebrants
86cdecf193
Always run 'accepted' validation ( #101 )
2017-07-06 11:21:27 +02:00
Willem Wollebrants
ec77d601ad
Handle malformed bulk rules ( #204 )
2017-07-06 11:03:04 +02:00
Willem Wollebrants
a6cf3a8c86
Merge pull request #201 from auroraeosrose/foreachbug
...
Check if the value in getParts is non-scalar to prevent "Invalid argument to foreach" error
2017-06-23 23:38:17 +02:00
Elizabeth M Smith
66464f4c51
test for the bug
2017-06-23 14:05:47 -04:00
Elizabeth M Smith
4896ade387
really? 5.3 support? ewww
2017-06-23 13:50:49 -04:00
Elizabeth M Smith
05b5c40515
test for the change
2017-06-23 13:43:15 -04:00
Willem Wollebrants
1942e53a5c
Remove unneeded test testIntegerWithMaxValidation
2017-02-21 21:12:27 +01:00
Willem Wollebrants
28d954817b
Use an optional parameter to make validateInteger more strict
2017-02-21 21:11:14 +01:00
notona
cb1ecb12e6
fix for test codes
2017-02-20 12:32:37 +09:00
notona
bc035a4a95
add more tests
2017-02-20 12:28:16 +09:00
notona
7c990e39ef
fix integer validation process
2017-02-20 12:18:18 +09:00
Willem Wollebrants
f8290a8c59
Fix bug where Validator::withData would also erase all rules
2016-12-09 11:44:39 +01:00
Andy Snell
f9dd486b5d
Update MasterCard BIN Range
...
Updates the credit card validator regular expression for the MasterCard brand to also match 16-digit card numbers starting with 22 - 27. Additionally, updates the unit test for credit cards with two published test cards in the new BIN range.
Additional information on the BIN range update can be found at: https://www.mastercard.us/en-us/issuers/get-support/2-series-bin-expansion.html
2016-12-05 00:09:39 -05:00
Willem Wollebrants
94317636d9
Added withData method for immutable reusability
2016-08-17 21:44:17 +02:00
misantron
d47c6206ed
Change contains validator default mode to strict
2016-05-21 20:48:01 +03:00
misantron
a89c0972c1
Contains validator update, between validator added
2016-03-26 00:55:08 +03:00
Willem Wollebrants
9afa605dc3
Add tests for 'optional' rule
2016-02-22 12:13:02 +01:00
USAMI Kenta
96221ea4d3
Add type check for between comparison
...
Return 0 if $value is not numeric value
2015-11-20 16:57:15 +09:00
USAMI Kenta
28254e76c2
Add type check for stringLength
...
Return 0 if $value is not string
2015-11-20 16:55:56 +09:00
USAMI Kenta
29c7d35db6
Add test code for Validator::error()
2015-11-20 16:55:56 +09:00
Vance Lucas
7bdc57b9c4
Fix failing urlActive test due to checkdnsrr
2015-08-06 18:47:39 -05:00
Vance Lucas
c7342e025a
Fix #115 strict flag for in_array
2014-11-20 09:24:40 -06:00
Lane Roberts
282f4a6ac3
PHP 5.3 compatibility in array syntax
2014-09-18 11:32:30 -05:00
Lane Roberts
8f364b89a8
Add test to exhibit error behavior
2014-09-18 11:08:28 -05:00
Mark Cahill
ec0543be10
Tests for associative arrays
2014-09-08 15:07:49 -04:00
Mark Cahill
eace42656a
Validate an array of discrete values
2014-09-08 12:34:46 -04:00
Mark Cahill
c197b10891
Validation of nested arrays, closes #8
2014-09-08 10:40:53 -04:00
Vance Lucas
6d36b12f76
Merge pull request #85 from Typeform/master
...
Add instanceOf to rules in readme.md
2014-07-29 13:00:00 -05:00
Victor Bjelkholm
9d90b08813
Show instance name in instanceOf error message
2014-07-29 16:39:14 +02:00
Justin Hook
9b5b0cff77
Fixes #64 . Updated validateDateFormat to use warning_count for validation check
2014-07-26 15:47:50 +01:00
Victor Bjelkholm
8aa6ad1c5d
Allow date to be DateTime object
2014-07-14 14:02:34 +02:00
Victor Bjelkholm
be9d21399c
Uncomment CC test cases and add alternative syntax tests
2014-07-14 13:45:44 +02:00
Victor Bjelkholm
c59cfd54b0
Use old array syntax instead of new to keep compatibility
2014-07-14 12:58:09 +02:00
Victor Bjelkholm
ad0f6b9708
Add instanceOf validation
2014-07-14 12:43:00 +02:00
Vance Lucas
f52df87b56
Made the BC Math extension optional
2014-07-07 09:00:28 -05:00
Mark Cahill
272fe84b15
Run validation is field is non-null instead of truthy. Fixes #70
2014-05-27 15:31:13 -04:00
Vance Lucas
430a8324ec
Merge pull request #53 from Kilte/feature-length
...
Add min/max-length validators
2014-04-10 10:53:37 -05:00