Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Added test for invalid 100 response
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasvargiu committed Jan 13, 2019
1 parent 16220f4 commit 8cb7375
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/ResponseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ public function testResponseFactoryFromStringCreatesValidResponse()
$this->assertEquals('Foo Bar', $response->getContent());
}

public function testResponseFactoryFromStringWithInvalid100ResponseContent()
{
$this->expectException(RuntimeException::class);
$string = 'HTTP/1.0 100 Continue' . "\r\n";
Response::fromString($string);
}

public function testResponseCanRenderStatusLine()
{
$response = new Response();
Expand Down

0 comments on commit 8cb7375

Please sign in to comment.