* renaming tests
[m6w6/ext-http] / tests / split_response_001.phpt
diff --git a/tests/split_response_001.phpt b/tests/split_response_001.phpt
new file mode 100644 (file)
index 0000000..d67a7a8
--- /dev/null
@@ -0,0 +1,24 @@
+--TEST--
+http_split_response()
+--SKIPIF--
+<?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!"));
+?>
+--EXPECTF--
+Content-type: text/html
+X-Powered-By: PHP/%s
+
+array (
+  0 => 
+  array (
+    '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