Annotation of embedaddon/php/ext/zlib/tests/readgzfile_variation12.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Test function readgzfile() by substituting agument 2 with int 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: $filename = dirname(__FILE__)."/004.txt.gz";
        !            12: 
        !            13: 
        !            14: $variation = array (
        !            15:     'int 0' => 0,
        !            16:     'int 1' => 1,
        !            17:     'int 12345' => 12345,
        !            18:     'int -12345' => -2345,
        !            19:     );
        !            20: 
        !            21: 
        !            22: foreach ( $variation as $var ) {
        !            23:   var_dump(readgzfile( $filename, $var  ) );
        !            24: }
        !            25: ?>
        !            26: ===DONE===
        !            27: --EXPECT--
        !            28: When you're taught through feelings
        !            29: Destiny flying high above
        !            30: all I know is that you can realize it
        !            31: Destiny who cares
        !            32: as it turns around
        !            33: and I know that it descends down on me
        !            34: int(176)
        !            35: When you're taught through feelings
        !            36: Destiny flying high above
        !            37: all I know is that you can realize it
        !            38: Destiny who cares
        !            39: as it turns around
        !            40: and I know that it descends down on me
        !            41: int(176)
        !            42: When you're taught through feelings
        !            43: Destiny flying high above
        !            44: all I know is that you can realize it
        !            45: Destiny who cares
        !            46: as it turns around
        !            47: and I know that it descends down on me
        !            48: int(176)
        !            49: When you're taught through feelings
        !            50: Destiny flying high above
        !            51: all I know is that you can realize it
        !            52: Destiny who cares
        !            53: as it turns around
        !            54: and I know that it descends down on me
        !            55: int(176)
        !            56: ===DONE===

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