@@ -8,37 +8,37 @@ public function testParseResponseBasic()
88 {
99 $ raw = "HTTP/1.1 201 Created \r\nContent-Type: text/html \r\nDate: Fri, 19 Jun 2015 16:05:18 GMT \r\nVary: Accept-Encoding \r\nContent-Length: 0 \r\n\r\n" ;
1010 list ($ status , $ headers , $ body ) = HttpUtil::parseResponse ($ raw );
11-
11+
1212 $ expectedHeaders = array (
1313 'Content-Type: text/html ' ,
1414 'Date: Fri, 19 Jun 2015 16:05:18 GMT ' ,
1515 'Vary: Accept-Encoding ' ,
1616 'Content-Length: 0 '
1717 );
18-
18+
1919 $ this ->assertEquals ('HTTP/1.1 201 Created ' , $ status );
2020 $ this ->assertEquals (null , $ body );
2121 $ this ->assertEquals ($ expectedHeaders , $ headers );
2222 }
23-
23+
2424 public function testParseResponseMultipleHeaders ()
2525 {
2626 $ raw = "HTTP/1.1 201 Created \r\nContent-Type: text/html \r\nDate: Fri, 19 Jun 2015 16:05:18 GMT \r\nVary: Accept, Accept-Language, Expect \r\nVary: Accept-Encoding \r\nContent-Length: 0 \r\n\r\n" ;
2727 list ($ status , $ headers , $ body ) = HttpUtil::parseResponse ($ raw );
28-
28+
2929 $ expectedHeaders = array (
3030 'Content-Type: text/html ' ,
3131 'Date: Fri, 19 Jun 2015 16:05:18 GMT ' ,
3232 'Vary: Accept, Accept-Language, Expect ' ,
3333 'Vary: Accept-Encoding ' ,
3434 'Content-Length: 0 '
3535 );
36-
36+
3737 $ this ->assertEquals ('HTTP/1.1 201 Created ' , $ status );
3838 $ this ->assertEquals (null , $ body );
3939 $ this ->assertEquals ($ expectedHeaders , $ headers );
4040 }
41-
41+
4242 public function testParseContinuePlusResponse ()
4343 {
4444 $ raw = "HTTP/1.1 100 Continue \r\n\r\nHTTP/1.1 201 Created \r\nContent-Type: text/html \r\nDate: Fri, 19 Jun 2015 16:05:18 GMT \r\nVary: Accept-Encoding \r\nContent-Length: 0 \r\n\r\n" ;
@@ -50,12 +50,12 @@ public function testParseContinuePlusResponse()
5050 'Vary: Accept-Encoding ' ,
5151 'Content-Length: 0 '
5252 );
53-
53+
5454 $ this ->assertEquals ('HTTP/1.1 201 Created ' , $ status );
5555 $ this ->assertEquals (null , $ body );
5656 $ this ->assertEquals ($ expectedHeaders , $ headers );
5757 }
58-
58+
5959 public function testParseiMultipleContinuePlusResponse ()
6060 {
6161 $ raw = "HTTP/1.1 100 Continue \r\n\r\nHTTP/1.1 100 Continue \r\n\r\nHTTP/1.1 100 Continue \r\n\r\nHTTP/1.1 100 Continue \r\n\r\nHTTP/1.1 201 Created \r\nContent-Type: text/html \r\nDate: Fri, 19 Jun 2015 16:05:18 GMT \r\nVary: Accept-Encoding \r\nContent-Length: 0 \r\n\r\n" ;
@@ -67,7 +67,7 @@ public function testParseiMultipleContinuePlusResponse()
6767 'Vary: Accept-Encoding ' ,
6868 'Content-Length: 0 '
6969 );
70-
70+
7171 $ this ->assertEquals ('HTTP/1.1 201 Created ' , $ status );
7272 $ this ->assertEquals (null , $ body );
7373 $ this ->assertEquals ($ expectedHeaders , $ headers );
@@ -78,15 +78,15 @@ public function testParseContinuePlusResponseMultipleHeaders()
7878 {
7979 $ raw = "HTTP/1.1 100 Continue \r\n\r\nHTTP/1.1 201 Created \r\nContent-Type: text/html \r\nDate: Fri, 19 Jun 2015 16:05:18 GMT \r\nVary: Accept, Accept-Language, Expect \r\nVary: Accept-Encoding \r\nContent-Length: 0 \r\n\r\n" ;
8080 list ($ status , $ headers , $ body ) = HttpUtil::parseResponse ($ raw );
81-
81+
8282 $ expectedHeaders = array (
8383 'Content-Type: text/html ' ,
8484 'Date: Fri, 19 Jun 2015 16:05:18 GMT ' ,
8585 'Vary: Accept, Accept-Language, Expect ' ,
8686 'Vary: Accept-Encoding ' ,
8787 'Content-Length: 0 '
8888 );
89-
89+
9090 $ this ->assertEquals ('HTTP/1.1 201 Created ' , $ status );
9191 $ this ->assertEquals (null , $ body );
9292 $ this ->assertEquals ($ expectedHeaders , $ headers );
@@ -109,7 +109,7 @@ public function testParseHeadersBasic()
109109 $ outputArray = HttpUtil::parseHeaders ($ inputArray );
110110 $ this ->assertEquals ($ excpetedHeaders , $ outputArray );
111111 }
112-
112+
113113 public function testParseHeadersMultiple ()
114114 {
115115 $ inputArray = array (
0 commit comments