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

Commit

Permalink
fix(content): Remove flacky json_encode.
Browse files Browse the repository at this point in the history
  • Loading branch information
yannickroger committed Apr 7, 2021
1 parent c595ae6 commit 7ac63ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ public function setContent($content)
$this->assertReponseSchema(
$this->getFormat(),
$this->getSchema(),
\json_encode($content)
$content
);
}

Expand Down Expand Up @@ -301,7 +301,7 @@ public function assertReponseSchema($format, $schema, $value)

switch (true) {
case strpos($format, 'json') !== false:
$this->assertResponseJSON($value, $schema);
$this->assertResponseJSON(json_encode($value), $schema);
break;
case strpos($format, 'xml') !== false:
$this->assertResponseXML($value, $schema);
Expand Down

0 comments on commit 7ac63ce

Please sign in to comment.