Annotation of embedaddon/php/ext/phar/tests/phar_oo_getmodified.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Phar::getModified()
! 3: --SKIPIF--
! 4: <?php if (!extension_loaded("phar")) die("skip"); ?>
! 5: <?php if (!extension_loaded("zlib")) die("skip zlib not present"); ?>
! 6: --INI--
! 7: phar.require_hash=0
! 8: phar.readonly=0
! 9: --FILE--
! 10: <?php
! 11: $fname = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.php';
! 12: $pname = 'phar://' . $fname;
! 13: $file = '<?php __HALT_COMPILER(); ?>';
! 14:
! 15: $files = array();
! 16: $files['a'] = 'a';
! 17: $files['b'] = 'b';
! 18: $files['c'] = 'c';
! 19:
! 20: include 'files/phar_test.inc';
! 21:
! 22: $phar = new Phar($fname);
! 23: var_dump($phar->getModified());
! 24: $phar->compressFiles(Phar::GZ);
! 25: var_dump($phar->getModified());
! 26: ?>
! 27: ===DONE===
! 28: --CLEAN--
! 29: <?php
! 30: unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar');
! 31: unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.php');
! 32: ?>
! 33: --EXPECTF--
! 34: bool(false)
! 35: bool(true)
! 36: ===DONE===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>