Skip to content

Commit 50a2439

Browse files
author
Jani Taskinen
committed
- Fix tests assuming wrong ini options and extensions that might not be there
1 parent c9016a4 commit 50a2439

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

Zend/tests/bug50174.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
--TEST--
22
Bug #50174 (Incorrectly matched docComment)
3+
--SKIPIF--
4+
<?php if (!extension_loaded('reflection') || !extension_loaded('spl')) print "skip"; ?>
35
--FILE--
46
<?php
57

ext/iconv/tests/iconv_encoding_basic.phpt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ Test iconv_get_encoding()/iconv_set_encoding() function : basic functionality
55
extension_loaded('iconv') or die('skip');
66
function_exists('iconv_get_encoding') or die("skip iconv_get_encoding() is not available in this build");
77
?>
8+
--INI--
9+
iconv.input_encoding=ISO-8859-1
10+
iconv.internal_encoding=ISO-8859-1
11+
iconv.output_encoding=ISO-8859-1
812
--FILE--
913
<?php
1014
/* Prototype : mixed iconv_get_encoding([string type])
@@ -91,4 +95,4 @@ array(3) {
9195
["internal_encoding"]=>
9296
string(5) "UTF-8"
9397
}
94-
Done
98+
Done

ext/iconv/tests/iconv_substr_basic.phpt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ Test iconv_substr() function : basic functionality
55
extension_loaded('iconv') or die('skip');
66
function_exists('iconv_substr') or die("skip iconv_substr() is not available in this build");
77
?>
8+
--INI--
9+
iconv.input_encoding=ISO-8859-1
10+
iconv.internal_encoding=ISO-8859-1
11+
iconv.output_encoding=ISO-8859-1
812
--FILE--
913
<?php
1014
/* Prototype : string iconv_substr(string str, int offset, [int length, string charset])
@@ -52,4 +56,4 @@ string(14) "a5e69cace8aa9e"
5256

5357
-- Multibyte string 2 --
5458
string(42) "e8aa9ee38386e382ade382b9e38388e381a7e38199"
55-
Done
59+
Done

0 commit comments

Comments
 (0)