Andrew Willis
d7ec85ef48
and again with the array thing making valid for php5.3
2014-01-10 06:58:18 +00:00
Andrew Willis
f26a1f55b4
fixed indentation and php5.3 array syntax
2014-01-10 06:54:10 +00:00
Andrew Willis
2d0790b984
Added credit card validation for Visa, Mastercard, American Express, Dinersclub and Discover
2014-01-09 22:05:23 +00:00
Kilte
db6d49baf6
Fix #33 Validation for length - Message is incorrect for between cases
2014-01-07 00:08:09 +04:00
Vance Lucas
add2cc92d2
Merge pull request #31 from biggingernerd/master
...
Added validator for boolean
2013-11-11 13:05:13 -08:00
Vance Lucas
d51f4c0fa5
Always use custom label in place of field name
...
Fixes: https://github.com/vlucas/valitron/issues/32
2013-11-11 15:02:19 -06:00
Martijn van Maasakkers
66d62dd96d
Removed silly string = true check
2013-10-15 21:21:30 +02:00
Big Ginger Nerd
da56650a52
Added test
2013-10-15 15:01:56 +02:00
Vance Lucas
5dc7fd9fb3
Add support for associative arrays using 'in'
2013-08-30 10:31:57 -05:00
Marcos Neves
120975b49c
change test comment to state the fixing instead of the error
2013-08-21 06:42:48 -03:00
Marcos Neves
8ec9d8affe
refactor test to use public interface instead of protected data by reflection
2013-08-21 06:38:33 -03:00
Marcos Neves
676e80dd8e
add failing tests before fix addRule
2013-08-20 21:25:14 -03:00
Marcos Neves
f793bb7555
missing language file now raises InvalidArgumentException
2013-08-19 12:31:11 -03:00
Marcos Neves
367ec9a7c7
fix bug moving message loading to constructor and replace require with include to avoid fatal error
2013-08-19 10:58:10 -03:00
Marcos Neves
ca4f6737dc
add test to show the bug
2013-08-19 10:58:10 -03:00
Marcos Neves
611f264885
Add a BaseTest class to reset static properties on setUp and tearDown
2013-08-16 23:02:13 -03:00
Marcos Neves
2dd9fa79a3
add global static lang support and sample to README.md
2013-08-16 12:20:25 -03:00
Vance Lucas
f0aa5011b6
Add tests for custom labels & fix #20
...
Ticket: https://github.com/vlucas/valitron/issues/20
2013-08-09 11:42:55 -05:00
Vance Lucas
0f96c883bc
Add test coverage for 'addRule' method
2013-08-07 18:14:09 -05:00
Vance Lucas
05c1b9ab15
Error messages now include field name by default
...
* Version 1.1.0 release
2013-06-29 10:26:03 -05:00
Tom Graham
81978ef8c7
Added support for non-mandatory fields. Fixes issue #13 .
2013-06-19 21:27:56 +01:00
Andrew Smith
4a14b0e13e
Added in field labels to allow user to label fields with a different name than the actual label defined in the html.
2013-05-13 13:16:22 +01:00
Vance Lucas
c049a8f380
Merge branch 'add-rules-in-bulk'
2013-03-05 18:01:35 -06:00
Joel Clermont
173ad40b7d
fix array structure to make it easier to parse. update tests
2013-03-05 17:12:42 -06:00
Joel Clermont
035de87cf7
update rules method to be more consistent with rule method
2013-03-05 14:14:34 -06:00
Chris Cornutt
cb880e73b2
fixing some logic on the URL checking and adding new "contains" validator
2013-03-05 09:40:28 -06:00
Joel Clermont
1d68384f05
updated tests to more clearly isolate the issue
2013-03-05 06:48:47 -06:00
Joel Clermont
d41d115ab7
tests and code to support adding multiple rules via an array
2013-03-04 21:06:04 -06:00
Vance Lucas
85b359babe
Removed missing method passthru for leaner API
...
* Remove __call in favor of more explicit `rule` method - smaller API
to maintain without magic method use
* Updated README with current supported rules
2013-02-04 18:07:18 -06:00
Vance Lucas
4123e185f4
Add error messages with basic translation support
...
* Initial English error messages file and directory
* Setup methods to specify language and directory to find lang files in
* Change 'alphaDash' validation name to 'slug' for URL slugs
* Now passing all parameters to error message via `vsprintf`
* Add `message` convenience method to easily specify custom message on
last validation rule
* Add tests for error messages
2013-02-02 20:10:02 -06:00
Vance Lucas
33c92a3f24
Add tests for array of field names in rule
2013-01-31 17:36:40 -06:00
Vance Lucas
9a69eb6198
All initial validators added and tested
2013-01-28 13:10:50 -06:00
Vance Lucas
ef40f0e187
Working basic validations with tests
2013-01-26 21:30:55 -06:00