cvs: php4 /ext/mbstring/tests mb_send_mail01.phpt mb_send_mail02.phpt mb_send_mail03.phpt mb_send_mail04.phpt

From: Date: Tue, 12 Nov 2002 20:04:58 +0000
Subject: cvs: php4 /ext/mbstring/tests mb_send_mail01.phpt mb_send_mail02.phpt mb_send_mail03.phpt mb_send_mail04.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-16046@lists.php.net to get a copy of this message
moriyoshi Tue Nov 12 15:04:58 2002 EDT Added files: /php4/ext/mbstring/tests mb_send_mail01.phpt mb_send_mail02.phpt mb_send_mail03.phpt mb_send_mail04.phpt Log: Added test cases for mb_send_mail() Index: php4/ext/mbstring/tests/mb_send_mail01.phpt +++ php4/ext/mbstring/tests/mb_send_mail01.phpt --TEST-- mb_send_mail() test 1 (lang=neutral) --SKIPIF-- <?php if (@mb_send_mail() === false || !mb_language("neutral")) { die("skip mb_send_mail() not available"); } ?> --INI-- sendmail_path=cat --FILE-- <?php $to = 'example@example.com'; /* default setting */ mb_send_mail($to, mb_language(), "test"); /* neutral (UTF-8) */ if (mb_language("neutral")) { mb_send_mail($to, "test ".mb_language(), "test"); } ?> --EXPECTF-- To: example@example.com Subject: %s Mime-Version: 1.0 Content-Type: text/plain; charset=%s Content-Transfer-Encoding: %s test To: example@example.com Subject: test neutral Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: BASE64 test Index: php4/ext/mbstring/tests/mb_send_mail02.phpt +++ php4/ext/mbstring/tests/mb_send_mail02.phpt --TEST-- mb_send_mail() test 2 (lang=Japanese) --SKIPIF-- <?php if (@mb_send_mail() === false || !mb_language("japanese")) { die("skip mb_send_mail() not available"); } ?> --INI-- sendmail_path=cat --FILE-- <?php $to = 'example@example.com'; /* default setting */ mb_send_mail($to, mb_language(), "test"); /* Japanese (EUC-JP) */ if (mb_language("japanese")) { mb_send_mail($to, "¥Æ¥¹¥È ".mb_language(), "¥Æ¥¹¥È"); } ?> --EXPECTF-- To: example@example.com Subject: %s Mime-Version: 1.0 Content-Type: text/plain; charset=%s Content-Transfer-Encoding: %s test To: example@example.com Subject: =?ISO-2022-JP?B?GyRCJUYlOSVIGyhCIEphcGFuZXNl?= Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit $B%F%9%H(B Index: php4/ext/mbstring/tests/mb_send_mail03.phpt +++ php4/ext/mbstring/tests/mb_send_mail03.phpt --TEST-- mb_send_mail() test 3 (lang=English) --SKIPIF-- <?php if (@mb_send_mail() === false || !mb_language("german")) { die("skip mb_send_mail() not available"); } ?> --INI-- sendmail_path=cat --FILE-- <?php $to = 'example@example.com'; /* default setting */ mb_send_mail($to, mb_language(), "test"); /* English (iso-8859-1) */ if (mb_language("english")) { mb_send_mail($to, "test ".mb_language(), "test"); } ?> --EXPECTF-- To: example@example.com Subject: %s Mime-Version: 1.0 Content-Type: text/plain; charset=%s Content-Transfer-Encoding: %s test To: example@example.com Subject: test English Mime-Version: 1.0 Content-Type: text/plain; charset=%s-8859-1 Content-Transfer-Encoding: 8bit test Index: php4/ext/mbstring/tests/mb_send_mail04.phpt +++ php4/ext/mbstring/tests/mb_send_mail04.phpt --TEST-- mb_send_mail() test 4 (lang=German) --SKIPIF-- <?php if (@mb_send_mail() === false || !mb_language("german")) { die("skip mb_send_mail() not available"); } ?> --INI-- sendmail_path=cat --FILE-- <?php $to = 'example@example.com'; /* default setting */ mb_send_mail($to, mb_language(), "test"); /* German (iso-8859-15) */ if (mb_language("german")) { mb_send_mail($to, "Pr"."\xfc"."fung ".mb_language(), "Pr"."\xfc"."fung"); } ?> --EXPECTF-- To: example@example.com Subject: %s Mime-Version: 1.0 Content-Type: text/plain; charset=%s Content-Transfer-Encoding: %s test To: example@example.com Subject: =?ISO-8859-15?Q?Pr=FCfung=20German?= Mime-Version: 1.0 Content-Type: text/plain; charset=%s-8859-15 Content-Transfer-Encoding: 8bit Prüfung

« previous php.cvs (#16046) next »