Skip to content

Commit

Permalink
Merge branch '5.1' of https://github.com/reinink/framework into reini…
Browse files Browse the repository at this point in the history
…nk-5.1
  • Loading branch information
taylorotwell committed Jun 10, 2015
2 parents 8d1463e + 27273fa commit 045f1f5
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/Illuminate/Foundation/Testing/CrawlerTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -694,4 +694,22 @@ public function withoutMiddleware()

return $this;
}

/**
* Dump the content from the last response.
*
* @return void
*/
public function dump()
{
$content = $this->response->getContent();

$json = json_decode($content);

if (json_last_error() === JSON_ERROR_NONE) {
$content = $json;
}

dd($content);
}
}

0 comments on commit 045f1f5

Please sign in to comment.