com phpruntests: sample deflate post test: phpt-tests/sample_ deflatepost.phpt
| From: | David Soria Parra | Date: | Thu, 23 Apr 2009 20:37:17 +0000 |
| Subject: | com phpruntests: sample deflate post test: phpt-tests/sample_ deflatepost.phpt | ||
| Groups: | php.qa | ||
| Request: | Send a blank email to php-qa+get-66533@lists.php.net to get a copy of this message | ||
Commit: 20fb3d5038512c69ae9cfa1b31815663d4604a34
Author: Zoe Slattery <zoe@php.net> Thu, 23 Apr 2009 20:37:17 +0000
Parents: 466b06dd681b415cd17b3c64c7888806aab6b4fb
Branches: master
Link: http://git.php.net/?p=phpruntests.git;a=commitdiff;h=20fb3d5038512c69ae9cfa1b31815663d4604a34
Log:
sample deflate post test
Changed paths:
A phpt-tests/sample_deflatepost.phpt
Diff:
diff --git a/phpt-tests/sample_deflatepost.phpt b/phpt-tests/sample_deflatepost.phpt
new file mode 100644
index 0000000..d35f9fe
--- /dev/null
+++ b/phpt-tests/sample_deflatepost.phpt
@@ -0,0 +1,19 @@
+--TEST--
+Sample test for DEFLATE_POST
+--POST--
+blahblah=blah
+--DEFLATE_POST--
+1
+--FILE--
+<?php
+$content = file_get_contents('php://input');
+
+if (gzuncompress($content) != 'blahblah=blah') {
+ echo "invalid gzipped content";
+} else {
+ echo "It worked!\n";
+}
+?>
+--EXPECT--
+It worked!
+