- update package
[m6w6/ext-http] / tests / ob_inflatehandler_001.phpt
diff --git a/tests/ob_inflatehandler_001.phpt b/tests/ob_inflatehandler_001.phpt
new file mode 100644 (file)
index 0000000..2e494de
--- /dev/null
@@ -0,0 +1,16 @@
+--TEST--
+ob_inflatehandler
+--SKIPIF--
+<?php
+include 'skip.inc';
+checkcgi();
+skipif(!http_support(HTTP_SUPPORT_ENCODINGS), "need zlib");
+?>
+--FILE--
+<?php
+ob_start('ob_inflatehandler');
+echo http_deflate("TEST\n");
+?>
+--EXPECTF--
+%sTEST
+