Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Jan 29, 2024
1 parent e94f595 commit b8ed38a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Illuminate/Testing/TestResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,12 @@ public function assertStreamedContent($value)
return $this;
}

/**
* Assert that the given array matches the streamed JSON response content.
*
* @param array $value
* @return $this
*/
public function assertStreamedJsonContent($value)
{
return $this->assertStreamedContent(json_encode($value, JSON_THROW_ON_ERROR));
Expand Down

0 comments on commit b8ed38a

Please sign in to comment.