Skip to content

Commit

Permalink
Merge pull request #28450 from JamesForks/testing-dump-headers
Browse files Browse the repository at this point in the history
[5.8] Add dumpHeaders
  • Loading branch information
taylorotwell authored May 8, 2019
2 parents 3638b00 + a312a7e commit 6a70dcf
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Illuminate/Foundation/Testing/TestResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -1020,6 +1020,16 @@ public function dump()
dd($content);
}

/**
* Dump the headers from the response.
*
* @return void
*/
public function dumpHeaders()
{
dd($this->headers->all());
}

/**
* Get the streamed content from the response.
*
Expand Down

0 comments on commit 6a70dcf

Please sign in to comment.