Browse Source

Add test for FaceBook style status line.

Refs #3016
mark_story 12 years ago
parent
commit
dda401ea37
1 changed files with 8 additions and 0 deletions
  1. 8 0
      tests/TestCase/Network/Http/ResponseTest.php

+ 8 - 0
tests/TestCase/Network/Http/ResponseTest.php

@@ -50,6 +50,14 @@ class ResponseTest extends TestCase {
 			$response->headers['Content-Type']
 		);
 		$this->assertTrue(isset($response->headers));
+
+		$headers = [
+			'HTTP/1.0 200',
+		];
+		$response = new Response($headers, 'ok');
+
+		$this->assertEquals('1.0', $response->version());
+		$this->assertEquals(200, $response->statusCode());
 	}
 
 /**