cvs: php-src /ext/phar/tests/tar tar_nohash.phpt

From: Date: Sun, 24 May 2009 18:47:54 +0000
Subject: cvs: php-src /ext/phar/tests/tar tar_nohash.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-58160@lists.php.net to get a copy of this message
cellog Sun May 24 18:47:54 2009 UTC Modified files: /php-src/ext/phar/tests/tar tar_nohash.phpt Log: add missing test http://cvs.php.net/viewvc.cgi/php-src/ext/phar/tests/tar/tar_nohash.phpt?r1=1.1&r2=1.2&diff_format=u Index: php-src/ext/phar/tests/tar/tar_nohash.phpt diff -u /dev/null php-src/ext/phar/tests/tar/tar_nohash.phpt:1.2 --- /dev/null Sun May 24 18:47:54 2009 +++ php-src/ext/phar/tests/tar/tar_nohash.phpt Sun May 24 18:47:54 2009 @@ -0,0 +1,23 @@ +--TEST-- +Phar: tar archive, require_hash=1, should not error out +--SKIPIF-- +<?php if (!extension_loaded('phar')) die('skip'); ?> +<?php if (!extension_loaded("spl")) die("skip SPL not available"); ?> +<?php if (!extension_loaded("zlib")) die("skip zlib not available"); ?> +--INI-- +phar.readonly=1 +phar.require_hash=1 +--FILE-- +<?php +try { + $phar = new PharData(dirname(__FILE__) . '/files/Net_URL-1.0.15.tgz'); + var_dump($phar->getStub()); +} catch (Exception $e) { + echo $e->getMessage()."\n"; +} + +?> +===DONE=== +--EXPECT-- +string(0) "" +===DONE===

« previous php.cvs (#58160) next »