diff --git a/test/ResponseTest.php b/test/ResponseTest.php index 4df72fb148..b6d4a6d092 100644 --- a/test/ResponseTest.php +++ b/test/ResponseTest.php @@ -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();