cvs: php4 /ext/iconv/tests translit-failure.phpt translit-utf8.phpt
| From: | Moriyoshi Koizumi | Date: | Fri, 11 Oct 2002 18:07:47 +0000 |
| Subject: | cvs: php4 /ext/iconv/tests translit-failure.phpt translit-utf8.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-14849@lists.php.net to get a copy of this message | ||
moriyoshi Fri Oct 11 14:07:47 2002 EDT
Modified files:
/php4/ext/iconv/tests translit-failure.phpt translit-utf8.phpt
Log:
Improved the test cases so that they will be skipped rather than failed, if libiconv is not used.
Index: php4/ext/iconv/tests/translit-failure.phpt
diff -u php4/ext/iconv/tests/translit-failure.phpt:1.3
php4/ext/iconv/tests/translit-failure.phpt:1.4
--- php4/ext/iconv/tests/translit-failure.phpt:1.3 Fri Oct 11 09:43:24 2002
+++ php4/ext/iconv/tests/translit-failure.phpt Fri Oct 11 14:07:47 2002
@@ -1,7 +1,10 @@
--TEST--
Translit failure
--SKIPIF--
-<?php include('skipif.inc'); ?>
+<?php
+include('skipif.inc');
+( ICONV_IMPL != "libiconv" ) and die("skip");
+?>
--FILE--
<?php
// Should be ok.
Index: php4/ext/iconv/tests/translit-utf8.phpt
diff -u php4/ext/iconv/tests/translit-utf8.phpt:1.2 php4/ext/iconv/tests/translit-utf8.phpt:1.3
--- php4/ext/iconv/tests/translit-utf8.phpt:1.2 Thu Oct 10 12:49:33 2002
+++ php4/ext/iconv/tests/translit-utf8.phpt Fri Oct 11 14:07:47 2002
@@ -1,7 +1,10 @@
--TEST--
Translit UTF-8 quotes
--SKIPIF--
-<?php include('skipif.inc'); ?>
+<?php
+include('skipif.inc');
+( ICONV_IMPL != "libiconv" ) and die("skip");
+?>
--FILE--
<?php include('translit-utf8.inc'); ?>
--EXPECT--