f3d73a5e7aab8408adeb1e621f01746019f3b2c7
[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 echo "-TEST\n";
10 $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!";
11 var_export(http_split_response($data));
12 echo "\nDone\n";
13 ?>
14 --EXPECTF--
15 %sTEST
16 array (
17 0 =>
18 array (
19 'Response Status' => '200 Ok',
20 'Content-Type' => 'text/plain',
21 'Content-Language' => 'de-AT',
22 'Date' => 'Sat, 22 Jan 2005 18:10:02 GMT',
23 ),
24 1 => 'Hallo Du!',
25 )
26 Done
27