phpunit
Creating a mock in phpunit without mocking any methods?
You can pass null to setMethods() to avoid mocking any methods. Passing an empty array will mock all methods. The latter is the default value for the methods as you’ve found. That being said, I would say the need to do this might point out a flaw in the design of this class. Should this … Read more
Symfony functional test – custom headers not passing through
I have the same issue and after a little dig through I think it is a feature that BrowserKit currently doesn’t support. I have logged an issue for it: https://github.com/symfony/symfony/issues/5074 Update: this is not an issue — see the comments below Sample Code Sample request: $client->request( ‘GET’, $url, array(), array(), array( ‘HTTP_X_CUSTOM_VAR’ => $var ) … Read more