Bernhard Schussek
2e4ebe444f
[Validator] Renamed methods addViolationAtRelativePath() and getAbsolutePropertyPath() in ExecutionContext
2012-02-02 10:13:41 +01:00
Bernhard Schussek
9153f0e569
[Validator] Deprecated ConstraintValidator methods setMessage(), getMessageTemplate() and getMessageParameters()
...
Had to refactor the validation tests at the same time and fixed various small bugs while doing so.
2012-02-01 14:03:13 +01:00
Bernhard Schussek
0417282740
[Validator] Fixed typos
2012-02-01 09:21:22 +01:00
Bernhard Schussek
a30a679135
[Validator] Made ExecutionContext immutable and introduced new class GlobalExecutionContext
...
A new ExecutionContext is now created everytime that GraphWalker::walkConstraint() is
launched. Because of this, a validator B launched from within a validator A can't break
A anymore by changing the context.
Because we have a new ExecutionContext for every constraint validation, there is no point
in modifying its state anymore. Because of this it is now immutable.
2012-01-31 21:35:48 +01:00
Bernhard Schussek
fe85bbdb06
[Validator] Simplified ExecutionContext::addViolation(), added ExecutionContext::addViolationAt()
2012-01-31 18:42:14 +01:00
Bernhard Schussek
f904a9ed53
[Validator] Fixed: GraphWalker does not add constraint violation if error message is empty
2012-01-30 20:56:10 +01:00
Dariusz Górecki
3cfaade8f7
[CS] Fix usage of assertCount
...
Bug fix: no
Feature addition: no
Backwards compatibility break: no
Symfony2 tests pass: yes
Fixes the following tickets: -
Todo: -
2012-01-18 14:42:47 +01:00
stloyd
2b0c3526d8
Increase code coverage for: YamlParser, Validators, PhpEngine + Helpers, HttpFoundation
...
Revert failing asserts for UrlValidator
Mark as incomplete instead of commenting them out
2011-06-16 11:43:27 +02:00
Fabien Potencier
17cd08dc6c
fixed CS
2011-06-08 19:56:59 +02:00
Pascal Borreli
b4e220dce9
[Validator] Added unit tests
2011-05-08 21:52:34 +00:00