diff --git a/templates/php/tests/requests/requests.mustache b/templates/php/tests/requests/requests.mustache index 26982aa0fe..5d051e5ad3 100644 --- a/templates/php/tests/requests/requests.mustache +++ b/templates/php/tests/requests/requests.mustache @@ -35,7 +35,7 @@ class {{clientPrefix}}Test extends TestCase implements HttpClientInterface if (isset($request['body'])) { $this->assertEquals( - json_encode($request['body']), + json_encode($request['body'], JSON_UNESCAPED_UNICODE), $recordedRequest->getBody()->getContents() ); }