Skip to content

Commit

Permalink
Merge pull request #28967 from derekmd/test-response-dump-method-chai…
Browse files Browse the repository at this point in the history
…ning

[5.8] Allow TestResponse dump method chaining
  • Loading branch information
taylorotwell authored Jun 27, 2019
2 parents 8dcd047 + 2f0b8ca commit effec60
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/Illuminate/Foundation/Testing/TestResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -1042,7 +1042,7 @@ protected function session()
/**
* Dump the content from the response.
*
* @return void
* @return $this
*/
public function dump()
{
Expand All @@ -1055,16 +1055,20 @@ public function dump()
}

dump($content);

return $this;
}

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

return $this;
}

/**
Expand Down

0 comments on commit effec60

Please sign in to comment.