Skip to content
This repository was archived by the owner on Dec 20, 2021. It is now read-only.

Commit fc23199

Browse files
committed
fix(content): Remove flacky json_encode.
1 parent 27023a2 commit fc23199

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Response.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ public function setContent($content)
192192
$this->assertReponseSchema(
193193
$this->getFormat(),
194194
$this->getSchema(),
195-
\json_encode($content)
195+
$content
196196
);
197197
}
198198

@@ -296,7 +296,7 @@ public function assertReponseSchema($format, $schema, $value)
296296

297297
switch (true) {
298298
case strpos($format, 'json') !== false:
299-
$this->assertResponseJSON($value, $schema);
299+
$this->assertResponseJSON(json_encode($value), $schema);
300300
break;
301301
case strpos($format, 'xml') !== false:
302302
$this->assertResponseXML($value, $schema);

0 commit comments

Comments
 (0)