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===



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to