symfony-test-helpers
symfony-test-helpers copied to clipboard
Added a new Trait which allows to deal with Validator Constraints
I felt there was no solution to see why a form would fail or not while testing a POST or a PUT Request, and I also wanted to test validation in a functional way (in a sense that it was a controller TestCase, not a simple entity validation test).
So I made this up : we use the profiler before the POST / PUT request, so after the request we can use informations collected by the validator component to assert anything we want about violations :)
Let me know what you think about that :)