rasmus                                   Mon, 23 Jan 2012 06:39:01 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=322596

Log:
Please test your tests

Changed paths:
    U   php/php-src/branches/PHP_5_4/ext/zlib/tests/bug60761.phpt
    U   php/php-src/trunk/ext/zlib/tests/bug60761.phpt

Modified: php/php-src/branches/PHP_5_4/ext/zlib/tests/bug60761.phpt
===================================================================
--- php/php-src/branches/PHP_5_4/ext/zlib/tests/bug60761.phpt   2012-01-23 
06:37:32 UTC (rev 322595)
+++ php/php-src/branches/PHP_5_4/ext/zlib/tests/bug60761.phpt   2012-01-23 
06:39:01 UTC (rev 322596)
@@ -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)
+}

Modified: php/php-src/trunk/ext/zlib/tests/bug60761.phpt
===================================================================
--- php/php-src/trunk/ext/zlib/tests/bug60761.phpt      2012-01-23 06:37:32 UTC 
(rev 322595)
+++ php/php-src/trunk/ext/zlib/tests/bug60761.phpt      2012-01-23 06:39:01 UTC 
(rev 322596)
@@ -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)
+}

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to