Annotation of embedaddon/php/ext/zlib/tests/readgzfile_error.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Test function readgzfile() by calling it more than or less than its expected arguments
! 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: $use_include_path = false;
! 13: $extra_arg = 'nothing';
! 14:
! 15: var_dump(readgzfile( $filename, $use_include_path, $extra_arg ) );
! 16:
! 17: var_dump(readgzfile( ) );
! 18:
! 19:
! 20: ?>
! 21: ===DONE===
! 22: --EXPECTF--
! 23:
! 24: Warning: readgzfile() expects at most 2 parameters, 3 given in %s on line %d
! 25: NULL
! 26:
! 27: Warning: readgzfile() expects at least 1 parameter, 0 given in %s on line %d
! 28: NULL
! 29: ===DONE===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>