From 2227f10f3e90b09858e78cb743a8792edafed221 Mon Sep 17 00:00:00 2001 From: Greg Beaver Date: Sat, 26 Apr 2008 17:18:15 +0000 Subject: [PATCH] add failing portion of test for compressed alias read --- ext/phar/tests/zip/phar_setalias.phpt | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/ext/phar/tests/zip/phar_setalias.phpt b/ext/phar/tests/zip/phar_setalias.phpt index 1a5d8504b5..3a9cfce07e 100644 --- a/ext/phar/tests/zip/phar_setalias.phpt +++ b/ext/phar/tests/zip/phar_setalias.phpt @@ -2,6 +2,8 @@ Phar::setAlias() zip-based --SKIPIF-- + + --INI-- phar.require_hash=0 phar.readonly=0 @@ -9,6 +11,8 @@ phar.readonly=0 setStub(''); @@ -28,6 +32,19 @@ $phar->stopBuffering(); echo $phar->getAlias() . "\n"; $phar->setAlias('test'); echo $phar->getAlias() . "\n"; + +// test compression + +$phar->compressFiles(Phar::GZ); +copy($fname, $fname2); +$phar->setAlias('unused'); +$p2 = new Phar($fname2); +echo $p2->getAlias(), "\n"; +$p2->compressFiles(Phar::BZ2); +copy($fname3, $fname3); +$p2->setAlias('unused2'); +$p3 = new Phar($fname3); +echo $p3->getAlias(), "\n"; ?> ===DONE=== --CLEAN-- @@ -39,4 +56,6 @@ __HALT_COMPILER(); --EXPECT-- hio test +test +test ===DONE=== -- 2.50.1