com php-src: Remove invalid SKIPIF sections and make more tests run: ext/intl/tests/locale_get_keywords2.phpt ext/phar/tes
ts/cache_list/frontcontroller11.phpt
| From: | Gabriel Caruso | Date: | Wed, 08 Aug 2018 00:23:21 +0000 |
| Subject: | com php-src: Remove invalid SKIPIF sections and make more tests run: ext/intl/tests/locale_get_keywords2.phpt ext/phar/tes ts/cache_list/frontcontroller11.phpt |
||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-102851@lists.php.net to get a copy of this message | ||
Commit: f47cdd1ee0246b1d594de9ec29ce12c5279bc421
Author: Gabriel Caruso <carusogabriel34@gmail.com> Tue, 7 Aug 2018 21:23:21 -0300
Parents: 55c884f35108708c94394f96e22f939b94fe2ab6
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=f47cdd1ee0246b1d594de9ec29ce12c5279bc421
Log:
Remove invalid SKIPIF sections and make more tests run
Changed paths:
M ext/intl/tests/locale_get_keywords2.phpt
M ext/phar/tests/cache_list/frontcontroller11.phpt
Diff:
diff --git a/ext/intl/tests/locale_get_keywords2.phpt b/ext/intl/tests/locale_get_keywords2.phpt
index 7bcaca1..47efb7f 100644
--- a/ext/intl/tests/locale_get_keywords2.phpt
+++ b/ext/intl/tests/locale_get_keywords2.phpt
@@ -1,8 +1,8 @@
--TEST--
locale_get_keywords() icu >= 4.8
--SKIPIF--
-<?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?>
-<?php if(version_compare(INTL_ICU_VERSION, '4.8') < 0) print 'skip';
?>
+<?php if( !extension_loaded( 'intl' ) ) print 'skip intl extension not
loaded'; ?>
+<?php if(version_compare(INTL_ICU_VERSION, '4.8') < 0) print 'skip for ICU
> 4.8'; ?>
--FILE--
<?php
diff --git a/ext/phar/tests/cache_list/frontcontroller11.phpt
b/ext/phar/tests/cache_list/frontcontroller11.phpt
index f5e4e22..255f16a 100644
--- a/ext/phar/tests/cache_list/frontcontroller11.phpt
+++ b/ext/phar/tests/cache_list/frontcontroller11.phpt
@@ -4,8 +4,7 @@ Phar front controller mime type extension is not a string [cache_list]
default_charset=UTF-8
phar.cache_list={PWD}/frontcontroller11.php
--SKIPIF--
-<?php if (!extension_loaded("phar")) die("skip"); ?>
-<?php die("skip"); ?>
+<?php if (!extension_loaded("phar")) die("skip phar extension not loaded");
?>
--ENV--
SCRIPT_NAME=/frontcontroller11.php
REQUEST_URI=/frontcontroller11.php/a.php
@@ -14,9 +13,5 @@ PATH_INFO=/a.php
files/frontcontroller5.phar
--EXPECTHEADERS--
Content-type: text/html; charset=UTF-8
---EXPECTF--
-Fatal error: Uncaught PharException: Key of MIME type overrides array must be a file extension, was
"0" in %sfrontcontroller11.php:2
-Stack trace:
-#0 %sfrontcontroller11.php(2): Phar::webPhar('whatever', 'index.php',
'', Array)
-#1 {main}
- thrown in %sfrontcontroller11.php on line 2
\ No newline at end of file
+--EXPECT--
+hio
\ No newline at end of file