summaryrefslogtreecommitdiff
path: root/ext/zlib/tests
diff options
context:
space:
mode:
authorRasmus Lerdorf <rasmus@php.net>2012-01-23 06:39:01 (GMT)
committerRasmus Lerdorf <rasmus@php.net>2012-01-23 06:39:01 (GMT)
commit7a7e14f502d661717a2931e92b866c2eb5137d93 (patch)
tree54005545ee3fa6d8f846ed37d55c4b7f88c334b1 /ext/zlib/tests
parentf5a457318217a66fddc0d47af04a00f144dcbcec (diff)
downloadphp-7a7e14f502d661717a2931e92b866c2eb5137d93.tar.gz
Please test your tests
Diffstat (limited to 'ext/zlib/tests')
-rw-r--r--ext/zlib/tests/bug60761.phpt70
1 files changed, 35 insertions, 35 deletions
diff --git a/ext/zlib/tests/bug60761.phpt b/ext/zlib/tests/bug60761.phpt
index 7f4fffd..823173e 100644
--- a/ext/zlib/tests/bug60761.phpt
+++ b/ext/zlib/tests/bug60761.phpt
@@ -1,35 +1,35 @@
---TEST--
-checks zlib compression size is always the same no matter how many times its run
---SKIPIF--
-<?php if (!extension_loaded("zlib")) print "skip"; ?>
---FILE--
-<?php
-
-ob_start();
-phpinfo();
-$html = ob_get_clean();
-
-$lens = array();
-
-for ( $i=0 ; $i < 200 ; $i++ ) {
- //zlib.output_compression = On
- //zlib.output_compression_level = 9
- $compressed = gzcompress($html, 9);
-
- $len = strlen($compressed);
-
- $lens[$len] = $len;
-}
-
-$lens = array_values($lens);
-
-echo "Compressed lengths\n";
-var_dump($lens);
-
-?>
---EXPECTREGEX--
-Compressed lengths
-array(1) {
- [0]=>
- int(%d)
-}
+--TEST--
+checks zlib compression size is always the same no matter how many times its run
+--SKIPIF--
+<?php if (!extension_loaded("zlib")) print "skip"; ?>
+--FILE--
+<?php
+
+ob_start();
+phpinfo();
+$html = ob_get_clean();
+
+$lens = array();
+
+for ( $i=0 ; $i < 200 ; $i++ ) {
+ //zlib.output_compression = On
+ //zlib.output_compression_level = 9
+ $compressed = gzcompress($html, 9);
+
+ $len = strlen($compressed);
+
+ $lens[$len] = $len;
+}
+
+$lens = array_values($lens);
+
+echo "Compressed lengths\n";
+var_dump($lens);
+
+?>
+--EXPECTF--
+Compressed lengths
+array(1) {
+ [0]=>
+ int(%d)
+}