Current Path : /usr/opt/php72/share/pear/test/Mail_Mime/tests/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //usr/opt/php72/share/pear/test/Mail_Mime/tests/test_Bug_18772.phpt |
--TEST-- Bug #18772 Text/calendar message --SKIPIF-- --FILE-- <?php include "Mail/mime.php"; $mime = new Mail_mime; $mime->setSubject('test'); // A message with text/calendar only $mime->setCalendarBody('VCALENDAR'); echo $mime->getMessage(); echo "\n---\n"; // A message with alternative text $mime->setTXTBody('vcalendar'); $msg = $mime->getMessage(); echo preg_replace('/=_[0-9a-z]+/', '*', $msg); --EXPECT-- MIME-Version: 1.0 Content-Type: text/calendar; method=request; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: test VCALENDAR --- MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="*" Content-Transfer-Encoding: quoted-printable Subject: test --* Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=ISO-8859-1 vcalendar --* Content-Transfer-Encoding: quoted-printable Content-Type: text/calendar; method=request; charset=UTF-8 VCALENDAR --*--