Skip to content
Closed
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions http_client.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2192,12 +2192,13 @@ test it in a real application::
// ... other checks

$responseJson = $response->getContent();
$responseData = json_decode($responseJson, true, 512, JSON_THROW_ON_ERROR);

return $responseData;
return json_decode($responseJson, true, 512, JSON_THROW_ON_ERROR);
}
}

::

// ExternalArticleServiceTest.php
use PHPUnit\Framework\TestCase;
use Symfony\Component\HttpClient\MockHttpClient;
Expand Down
Loading