Re: phpt for bug 52013

From: Date: Fri, 02 Jul 2010 02:51:20 +0000
Subject: Re: phpt for bug 52013
References: 1  Groups: php.qa 
Request: Send a blank email to php-qa+get-65595@lists.php.net to get a copy of this message
On Sun, Jun 27, 2010 at 1:20 PM, Frederic Hardy < frederic.hardy@mageekbox.net> wrote: > Hello ! > > I was writted a test for bug 52013. > Please can you review it ? > > --TEST-- > Test for bug 52013 about Phar::descompressFiles(). > --SKIPIF-- > <?php if (!extension_loaded("phar")) die("skip"); ?> > --INI-- > phar.require_hash=0 > phar.readonly=0 > open_basedir= > --FILE-- > <?php > > mkdir(dirname(__FILE__) . '/testdir'); > file_put_contents(dirname(__FILE__) . '/testdir/1.php', str_repeat(' ', > 1455)); > > $phar = new \Phar(dirname(__FILE__) . '/compressed.phar'); > $phar->buildFromDirectory(dirname(__FILE__) . '/testdir', '/\.php$/'); > $phar->setSignatureAlgorithm(\Phar::SHA1); > $phar->compressFiles(\Phar::GZ); > $phar->decompressFiles(); > > echo 'ok'; > > ?> > --CLEAN-- > <?php > > unlink(dirname(__FILE__) . '/testdir/1.php'); > rmdir(dirname(__FILE__) . '/testdir'); > > unlink(dirname(__FILE__) . '/compressed.phar'); > > ?> > --EXPECT-- > ok > > -- > ======================================================================== > Frédéric Hardy : Architecte d'application/Admin. système/Ergonome > Status : En recherche d'emploi > ======================================================================== > > > -- > PHP Quality Assurance Mailing List <http://www.php.net/> > To unsubscribe, visit: http://www.php.net/unsub.php > > Fred, I made a few small adjustments to your test and committed it. http://svn.php.net/viewvc/php/php-src/trunk/ext/phar/tests/bug52013.phpt?view=markup http://svn.php.net/viewvc/php/php-src/branches/PHP_5_3/ext/phar/tests/bug52013.phpt?revision=300928&view=markup Eric Lee Stewart

« previous php.qa (#65595) next »