Markdown

How to simulate a Http-PUT with a json body?

``` $client->request( 'PUT', '/test', array(), array(), array( 'CONTENT_TYPE' => 'application/json', 'HTTP_X-Requested-With' => 'XMLHttpRequest' ), '{"id":"34"}' ); ``` https://stackoverflow.com/questions/15325876/symfony-unit-testing-how-to-simulate-a-http-put-with-a-json-body

留言