cvs: php4 /ext/standard/tests/strings strtoupper.phpt
| From: | Ilia Alshanetsky | Date: | Wed, 23 Oct 2002 23:04:43 +0000 |
| Subject: | cvs: php4 /ext/standard/tests/strings strtoupper.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-15245@lists.php.net to get a copy of this message | ||
iliaa Wed Oct 23 19:04:43 2002 EDT
Modified files:
/php4/ext/standard/tests/strings strtoupper.phpt
Log:
Added 'skip logic' to the test on platforms where the locale required by
this test is not avaliable.
Index: php4/ext/standard/tests/strings/strtoupper.phpt
diff -u php4/ext/standard/tests/strings/strtoupper.phpt:1.1
php4/ext/standard/tests/strings/strtoupper.phpt:1.2
--- php4/ext/standard/tests/strings/strtoupper.phpt:1.1 Tue Oct 22 15:39:17 2002
+++ php4/ext/standard/tests/strings/strtoupper.phpt Wed Oct 23 19:04:43 2002
@@ -1,17 +1,20 @@
--TEST--
Test strtoupper on non-ASCII characters
---POST--
---GET--
+--SKIPIF--
+<?php
+if (!setlocale(LC_CTYPE, "de_DE", "de", "german", "ge")) {
+ die("skip locale needed for this test is not supported on this platform");
+}
+?>
--FILE--
<?php
$chars = "àëï";
-setlocale(LC_ALL, "C");
// Not sure which is most portable. BSD's answer to
// this one. A small array based on PHP_OS should
// cover a majority of systems and makes the problem
// of locales transparent for the end user.
-setlocale(LC_CTYPE, "ISO8859-1");
-print(strtoupper($chars));
+setlocale(LC_CTYPE, "de_DE", "de", "german", "ge");
+echo strtoupper($chars)."\n";
?>
--EXPECT--
-ÄËÏ
+ÀËÏ