We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76db4bf commit 5fab53bCopy full SHA for 5fab53b
tests/CoreMiddlewareTest.php
@@ -103,6 +103,11 @@ public function __toString(): string
103
{
104
return json_encode(['foo' => 'bar'], JSON_UNESCAPED_UNICODE);
105
}
106
+
107
+ public function toJson($options = 0): string
108
+ {
109
+ return json_encode(['foo' => 'bar'], $options);
110
+ }
111
}, $request);
112
$this->assertInstanceOf(ResponseInterface::class, $response);
113
$this->assertSame(json_encode(['foo' => 'bar']), (string) $response->getBody());
0 commit comments