6c7bc5e021c4eda10a8c8b9d8846a4f143e444e7
[m6w6/ext-http] / tests / split_response_001.phpt
1 --TEST--
2 http_split_response()
3 --SKIPIF--
4 <?php
5 include 'skip.inc';
6 ?>
7 --FILE--
8 <?php
9 $data = "HTTP/1.1 200 Ok\r\nContent-Type: text/plain\r\nContent-Language: de-AT\r\nDate: Sat, 22 Jan 2005 18:10:02 GMT\r\n\r\nHallo Du!";
10 var_export(http_split_response($data));
11 echo "\nDone\n";
12 ?>
13 --EXPECTF--
14 %sarray (
15 0 =>
16 array (
17 'Response Status' => '200 Ok',
18 'Content-Type' => 'text/plain',
19 'Content-Language' => 'de-AT',
20 'Date' => 'Sat, 22 Jan 2005 18:10:02 GMT',
21 ),
22 1 => 'Hallo Du!',
23 )
24 Done
25