atoum / AtoumBundle

This bundle provides a simple integration of atoum into Symfony 2.
MIT License
44 stars 25 forks source link

There is no way to overload the client object #51

Closed Rebolon closed 11 years ago

Rebolon commented 11 years ago

In some of my test i need to set some cookies. But whereas Sf2 describe a way to do it with PHPUnit (http://symfony.com/fr/doc/current/book/testing.html), the implementation in AtoumBundle doesn't allow this.

I did this quick modification : https://gist.github.com/Rebolon/7024630 I modify the request closure and added a third params : $cookies They are just added to the client if they are specified.

Rebolon commented 11 years ago

https://github.com/Rebolon/AtoumBundle/commit/882254c92708051c56276a643655571a86b2d7b1