Skip to content

Commit

Permalink
- Fix tests assuming wrong ini options and extensions that might not …
Browse files Browse the repository at this point in the history
…be there
  • Loading branch information
Jani Taskinen committed Nov 30, 2009
1 parent be62e2c commit 565cec5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Zend/tests/bug50174.phpt
@@ -1,5 +1,7 @@
--TEST--
Bug #50174 (Incorrectly matched docComment)
--SKIPIF--
<?php if (!extension_loaded('reflection') || !extension_loaded('spl')) print "skip"; ?>
--FILE--
<?php

Expand Down
6 changes: 5 additions & 1 deletion ext/iconv/tests/iconv_encoding_basic.phpt
Expand Up @@ -5,6 +5,10 @@ Test iconv_get_encoding()/iconv_set_encoding() function : basic functionality
extension_loaded('iconv') or die('skip');
function_exists('iconv_get_encoding') or die("skip iconv_get_encoding() is not available in this build");
?>
--INI--
iconv.input_encoding=ISO-8859-1
iconv.internal_encoding=ISO-8859-1
iconv.output_encoding=ISO-8859-1
--FILE--
<?php
/* Prototype : mixed iconv_get_encoding([string type])
Expand Down Expand Up @@ -91,4 +95,4 @@ array(3) {
["internal_encoding"]=>
string(5) "UTF-8"
}
Done
Done
6 changes: 5 additions & 1 deletion ext/iconv/tests/iconv_substr_basic.phpt
Expand Up @@ -5,6 +5,10 @@ Test iconv_substr() function : basic functionality
extension_loaded('iconv') or die('skip');
function_exists('iconv_substr') or die("skip iconv_substr() is not available in this build");
?>
--INI--
iconv.input_encoding=ISO-8859-1
iconv.internal_encoding=ISO-8859-1
iconv.output_encoding=ISO-8859-1
--FILE--
<?php
/* Prototype : string iconv_substr(string str, int offset, [int length, string charset])
Expand Down Expand Up @@ -52,4 +56,4 @@ string(14) "a5e69cace8aa9e"

-- Multibyte string 2 --
string(42) "e8aa9ee38386e382ade382b9e38388e381a7e38199"
Done
Done

0 comments on commit 565cec5

Please sign in to comment.