Added a skip condition for when the encoding needed for the test is not

available or supported.
This commit is contained in:
Ilia Alshanetsky 2002-11-13 16:52:48 +00:00
parent 244d5d1c11
commit b0d519f730
2 changed files with 6 additions and 0 deletions

View file

@ -5,6 +5,9 @@ mb_send_mail() test 5 (lang=Simplified Chinese)
if (@mb_send_mail() === false || !mb_language("Simplified Chinese")) {
die("skip mb_send_mail() not available");
}
if (!@mb_internal_encoding('GB2312')) {
die("skip GB2312 encoding is not avaliable on this platform");
}
?>
--INI--
sendmail_path=cat

View file

@ -5,6 +5,9 @@ mb_send_mail() test 6 (lang=Traditional Chinese)
if (@mb_send_mail() === false || !mb_language("Traditional Chinese")) {
die("skip mb_send_mail() not available");
}
if (!@mb_internal_encoding('BIG5')) {
die("skip BIG5 encoding is not avaliable on this platform");
}
?>
--INI--
sendmail_path=cat