- This must not be changed here
[m6w6/ext-http] / tests / split_response_001.phpt
index d67a7a86dda68c4d129495b1bd58a9a193f53d6f..6c7bc5e021c4eda10a8c8b9d8846a4f143e444e7 100644 (file)
@@ -1,24 +1,25 @@
 --TEST--
 http_split_response()
 --SKIPIF--
-<?php 
+<?php
 include 'skip.inc';
 ?>
 --FILE--
 <?php
-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!"));
+$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!";
+var_export(http_split_response($data));
+echo "\nDone\n";
 ?>
 --EXPECTF--
-Content-type: text/html
-X-Powered-By: PHP/%s
-
-array (
+%sarray (
   0 => 
   array (
-    'Status' => '200 Ok',
+    'Response Status' => '200 Ok',
     'Content-Type' => 'text/plain',
     'Content-Language' => 'de-AT',
     'Date' => 'Sat, 22 Jan 2005 18:10:02 GMT',
   ),
   1 => 'Hallo Du!',
-)
\ No newline at end of file
+)
+Done
+