]> granicus.if.org Git - php/commitdiff
fix SKIPIF, EXPECT in 2 tests
authorGreg Beaver <cellog@php.net>
Sun, 1 Mar 2009 06:50:26 +0000 (06:50 +0000)
committerGreg Beaver <cellog@php.net>
Sun, 1 Mar 2009 06:50:26 +0000 (06:50 +0000)
ext/phar/tests/front.phar.phpt
ext/phar/tests/phar_get_supported_signatures_002.phpt

index 33fe2ab450bcd4e83de859a005da5a349331028d..bab8ada0fdd357b9e18361a291ce2c2eabf3b269 100644 (file)
@@ -12,8 +12,8 @@ PATH_INFO=/index.php
 Content-type: text/html; charset=UTF-8
 --FILE_EXTERNAL--
 files/blog.phar
---EXPECT--
-string(167) "<xml version="1.0" encoding="UTF-8">
+--EXPECTF--
+string(%d) "<xml version="1.0" encoding="UTF-8">
 <config>
  <database>
   <host>localhost</name>
index d7cd350115ec8bee40301c99378e25f15553a121..20f950a1460eaf9c1fed11c408660635cab4e5b1 100644 (file)
@@ -5,7 +5,7 @@ Phar::getSupportedSignatures()
 if (!extension_loaded("phar")) die("skip");
 if (!extension_loaded("hash")) die("skip extension hash required");
 $arr = Phar::getSupportedSignatures();
-if (in_array("OpenSSL", $arr)) die ("skip openssl support enabled");
+if (!in_array('SHA-256', $arr)) die("skip hash extension loaded shared");
 ?>
 --INI--
 phar.require_hash=0