This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/tests/Symfony/Tests/Component/Form
Fabien Potencier 8245bf13d5 merged branch bschussek/issue2615 (PR #3228)
Commits
-------

2e4ebe4 [Validator] Renamed methods addViolationAtRelativePath() and getAbsolutePropertyPath() in ExecutionContext
9153f0e [Validator] Deprecated ConstraintValidator methods setMessage(), getMessageTemplate() and getMessageParameters()
0417282 [Validator] Fixed typos
a30a679 [Validator] Made ExecutionContext immutable and introduced new class GlobalExecutionContext
fe85bbd [Validator] Simplified ExecutionContext::addViolation(), added ExecutionContext::addViolationAt()
f77fd41 [Form] Fixed typos
1fc615c Fixed string access by curly brace to bracket
a103c28 [Validator] The Collection constraint adds "missing" and "extra" errors to the individual fields now
f904a9e [Validator] Fixed: GraphWalker does not add constraint violation if error message is empty
1dd302c [Validator] Fixed ConstraintViolationList::__toString() to not include dots in the output if the root is empty
1678a3d [Validator] Fixed: Validator::validateValue() propagates empty validation root instead of the provided value

Discussion
----------

[Validator] Improved "missing" and "extra" errors of Collection constraint

Bug fix: yes
Feature addition: no
Backwards compatibility break: no
Symfony2 tests pass: yes
Fixes the following tickets: #2615
Todo: -

![Travis Build Status](https://secure.travis-ci.org/bschussek/symfony.png?branch=issue2615)

Instead of a single violation

    Array:
        The fields "foo", "bar" are missing

various violations are now generated.

    Array[foo]:
        This field is missing
    Array[bar]:
        This field is missing

Apart from that, the PR contains various minor fixes to the Validator.

---------------------------------------------------------------------------

by bschussek at 2012-02-02T09:14:52Z

@fabpot Ready for merge.
2012-02-02 10:16:32 +01:00
..
Extension merged branch bschussek/issue2615 (PR #3228) 2012-02-02 10:16:32 +01:00
Fixtures [Form] Reverted PR #1758. 2011-07-22 16:42:50 +02:00
Guess fixed CS 2011-06-08 19:56:59 +02:00
Util [Form] Greatly improved ChoiceListInterface and all of its implementations 2012-01-23 18:28:25 +01:00
AbstractDivLayoutTest.php [Form] reverted partially previous commit 2011-09-24 16:42:12 +02:00
AbstractExtensionTest.php merged 2.0 2011-10-29 12:01:39 +02:00
AbstractLayoutTest.php merged branch helmer/readonly (PR #3193) 2012-02-02 10:03:00 +01:00
AbstractTableLayoutTest.php Rebased with master, and fixed wrong behavior with proper tests coverage 2011-09-24 10:44:47 +02:00
FormBuilderTest.php [Form] added support for parent of FormBuilder 2012-02-02 10:09:50 +01:00
FormFactoryTest.php merged branch hason/formbuilder (PR #3249) 2012-02-02 10:13:41 +01:00
FormInterface.php fixed CS 2011-06-08 19:56:59 +02:00
FormTest.php merged branch helmer/readonly (PR #3193) 2012-02-02 10:03:00 +01:00
PropertyPathTest.php [Tests] Use proper phpunit assertion functions: "assertTrue", "assertFalse", "assertNull" 2011-08-25 15:41:15 +02:00