* renaming tests
[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 var_export(http_split_response("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 ?>
11 --EXPECTF--
12 Content-type: text/html
13 X-Powered-By: PHP/%s
14
15 array (
16 0 =>
17 array (
18 'Status' => '200 Ok',
19 'Content-Type' => 'text/plain',
20 'Content-Language' => 'de-AT',
21 'Date' => 'Sat, 22 Jan 2005 18:10:02 GMT',
22 ),
23 1 => 'Hallo Du!',
24 )