Commit graph

8 commits

Author SHA1 Message Date
Alexandre Gaigalas
88f0d82cce Improved several tests, fixed bug on Arr::check() that was calling methods on non-objects 2011-10-05 20:05:36 -03:00
Alexandre
cc278caffd Revert "Revert "Message modes for exceptions (in draft)""
This reverts commit 2041d4a33a.
2011-04-09 20:34:21 -03:00
Alexandre
2041d4a33a Revert "Message modes for exceptions (in draft)"
This reverts commit 6f0dd5c072.
2011-04-09 20:30:49 -03:00
Alexandre Gomes Gaigalas
6f0dd5c072 Message modes for exceptions (in draft) 2011-04-08 16:39:10 -03:00
Alexandre
62f19fe798 New tests for exceptions. 2011-02-20 15:03:09 -03:00
Alexandre
895ce93ed1 - Splitted up ValidationException into simple exceptions and composite exceptions
- Changed the string formater from sprintf to custom function. Exception parameters should be more readable now.
	- Several refactorings on the exception reporting model
	- Improved builders ( new v(array('int', 'positive', 'between'=>array(1,256))); is now possible, great for dependency injection.
	Note: There are nasty things on this commit. Duplicated code, orphan methods and such. Next step is a nice quality-wide refactoring.
2011-02-10 18:49:48 -02:00
Alexandre
4e068bf204 -Messages are now imperative ("foo must be bar") instead of informative ("foo is not bar").
-Several improvements on the messaging system and error reporting, lots of refactored code.
-Validators can now be safely named $val->setName('My Field'), and that name will reflect on the validation message ("My Field must be bla bla bla" instead of "incorrect value" must be bla bla bla)
2011-02-08 20:10:58 -02:00
Alexandre
8098321bcd A lot of refactoring, tests on ValidationException, improvements on AllOf::validate 2011-02-06 20:21:15 -02:00