Commit graph

6 commits

Author SHA1 Message Date
Henrique Moody eb3b8313aa Move tests files 2015-01-19 11:01:00 -02:00
Alexandre Gaigalas a8d1c94962 Remove support for undocumented baseXX() shortcut
Previously undocumented, this feature is now removed to improve
each chain call.
2015-01-14 19:27:06 -02:00
nickl- b88d224128 Test to ensure empty string is valid.
Updated all tests to ensure we don't fail an empty input, right across the board now. One rule for all but NotEmpty Class family. Instead of testing validate methods we should test against the __invoke method which is what validator uses. Updated all validate methods and calling __invoke directly in tests.
2013-01-25 05:20:13 +02:00
nickl- cb5d578c69 Whitespace fixes only 2013-01-25 05:18:02 +02:00
Henrique Moody 0421ba0cd3 Renamed test methods of underscore to cammelcase. 2013-01-14 20:56:53 -02:00
Carlos André Ferrari f2c723f869 Added Base validator
This validator is made to validate numbers in any base, even with custom bases

It also have a shortcut, you can use something like
v::base3()->assert('0212');
instead of
v::base(3)->assert('0212');

You can also use custom numeric sequences, like
v::base(3, 'xy')->assert('xyxyx');
2012-07-22 10:17:31 -03:00