From 79f5f7538cfdbd315303257b032a7ec92f571229 Mon Sep 17 00:00:00 2001 From: Greg Beaver Date: Sun, 1 Mar 2009 06:50:26 +0000 Subject: [PATCH] fix SKIPIF, EXPECT in 2 tests --- ext/phar/tests/front.phar.phpt | 4 ++-- ext/phar/tests/phar_get_supported_signatures_002.phpt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ext/phar/tests/front.phar.phpt b/ext/phar/tests/front.phar.phpt index 33fe2ab450..bab8ada0fd 100644 --- a/ext/phar/tests/front.phar.phpt +++ b/ext/phar/tests/front.phar.phpt @@ -12,8 +12,8 @@ PATH_INFO=/index.php Content-type: text/html; charset=UTF-8 --FILE_EXTERNAL-- files/blog.phar ---EXPECT-- -string(167) " +--EXPECTF-- +string(%d) " localhost diff --git a/ext/phar/tests/phar_get_supported_signatures_002.phpt b/ext/phar/tests/phar_get_supported_signatures_002.phpt index d7cd350115..20f950a146 100644 --- a/ext/phar/tests/phar_get_supported_signatures_002.phpt +++ b/ext/phar/tests/phar_get_supported_signatures_002.phpt @@ -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 -- 2.50.1