Annotation of embedaddon/php/ext/zlib/tests/gzfile_variation2.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Test function gzfile() by substituting agument 1 with boolean values.
                      3: --SKIPIF--
                      4: <?php
                      5: if (!extension_loaded('zlib')) die ('skip zlib extension not available in this build');
                      6: ?>
                      7: --FILE--
                      8: <?php
                      9: 
                     10: 
                     11: $use_include_path = 
                     12: 
                     13: 
                     14: $variation = array(
                     15:   'lowercase true' => true,
                     16:   'lowercase false' =>false,
                     17:   'uppercase TRUE' =>TRUE,
                     18:   'uppercase FALSE' =>FALSE,
                     19:   );
                     20: 
                     21: 
                     22: foreach ( $variation as $var ) {
                     23:   var_dump(gzfile( $var ,  $use_include_path ) );
                     24: }
                     25: ?>
                     26: ===DONE===
                     27: --EXPECTF--
                     28: 
                     29: Warning: gzfile() expects parameter 2 to be long, array given in %s on line %d
                     30: NULL
                     31: 
                     32: Warning: gzfile() expects parameter 2 to be long, array given in %s on line %d
                     33: NULL
                     34: 
                     35: Warning: gzfile() expects parameter 2 to be long, array given in %s on line %d
                     36: NULL
                     37: 
                     38: Warning: gzfile() expects parameter 2 to be long, array given in %s on line %d
                     39: NULL
                     40: ===DONE===

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>