summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2002-10-23 23:04:43 +0000
committerIlia Alshanetsky <iliaa@php.net>2002-10-23 23:04:43 +0000
commit2f3cd572fbe476f242d2597c63630eaba3dc7faa (patch)
tree5546a835021cb380345e49e9324294aeb2030ca0 /ext
parent703e360a35ea4000cf197d8b84111885ab3d301e (diff)
downloadphp-git-2f3cd572fbe476f242d2597c63630eaba3dc7faa.tar.gz
Added 'skip logic' to the test on platforms where the locale required by
this test is not avaliable.
Diffstat (limited to 'ext')
-rw-r--r--ext/standard/tests/strings/strtoupper.phpt15
1 files changed, 9 insertions, 6 deletions
diff --git a/ext/standard/tests/strings/strtoupper.phpt b/ext/standard/tests/strings/strtoupper.phpt
index 5c14cc921a..1b50221cdf 100644
--- a/ext/standard/tests/strings/strtoupper.phpt
+++ b/ext/standard/tests/strings/strtoupper.phpt
@@ -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--
-ÄËÏ
+ÀËÏ