Skip to content

Commit

Permalink
Define renderResponse conditionally to work around some kind of weird…
Browse files Browse the repository at this point in the history
… interaction/regression introduced in phpunit 7.3
  • Loading branch information
Firehed committed Sep 19, 2018
1 parent 425ac50 commit a502c13
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/renderResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
*
* @deprecated 3.1.0 Use ResponseRenderer instead
*/
function renderResponse(ResponseInterface $response)
{
ResponseRenderer::render($response);
if (!function_exists(__NAMESPACE__.'\renderResponse')) {
function renderResponse(ResponseInterface $response)
{
ResponseRenderer::render($response);
}
}

0 comments on commit a502c13

Please sign in to comment.