Annotation of embedaddon/php/ext/zlib/tests/readgzfile_variation7.phpt, revision 1.1.1.2

1.1       misho       1: --TEST--
                      2: Test function readgzfile() by substituting agument 1 with string 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 = false;
                     12: 
                     13: 
                     14: $heredoc = <<<EOT
                     15: hello world
                     16: EOT;
                     17: 
                     18: $variation_array = array(
                     19:   'string DQ' => "string",
                     20:   'string SQ' => 'string',
                     21:   'mixed case string' => "sTrInG",
                     22:   'heredoc' => $heredoc
                     23:   );
                     24: 
                     25: 
                     26: foreach ( $variation_array as $var ) {
                     27:   var_dump(readgzfile( $var ,  $use_include_path ) );
                     28: }
                     29: ?>
                     30: ===DONE===
                     31: --EXPECTF--
1.1.1.2 ! misho      32: Warning: readgzfile(string): failed to open stream: No such file or directory in %s on line %d
1.1       misho      33: bool(false)
1.1.1.2 ! misho      34: 
        !            35: Warning: readgzfile(string): failed to open stream: No such file or directory in %s on line %d
1.1       misho      36: bool(false)
1.1.1.2 ! misho      37: 
        !            38: Warning: readgzfile(sTrInG): failed to open stream: No such file or directory in %s on line %d
1.1       misho      39: bool(false)
1.1.1.2 ! misho      40: 
        !            41: Warning: readgzfile(hello world): failed to open stream: No such file or directory in %s on line %d
1.1       misho      42: bool(false)
                     43: ===DONE===

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