- single LF aware http_chunked_decode()
[m6w6/ext-http] / tests / chunked_decode_002.phpt
diff --git a/tests/chunked_decode_002.phpt b/tests/chunked_decode_002.phpt
new file mode 100644 (file)
index 0000000..8221ee8
--- /dev/null
@@ -0,0 +1,25 @@
+--TEST--
+http_chunked_decode() "\n"
+--SKIPIF--
+<?php
+include 'skip.inc';
+?>
+--FILE--
+<?php
+echo "-TEST\n";
+$data =
+"02\n".
+"ab\n".
+"04\n".
+"ra\nc\n".
+"06\n".
+"adabra\n".
+"0\n".
+"hidden\n";
+var_dump(http_chunked_decode($data));
+?>
+--EXPECTF--
+%sTEST
+string(12) "abra
+cadabra"
+