Mercurial > hg > rc1
comparison vendor/pear/mail_mime/tests/test_Bug_18772.phpt @ 0:1e000243b222
vanilla 1.3.3 distro, I hope
author | Charlie Root |
---|---|
date | Thu, 04 Jan 2018 15:50:29 -0500 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:1e000243b222 |
---|---|
1 --TEST-- | |
2 Bug #18772 Text/calendar message | |
3 --SKIPIF-- | |
4 --FILE-- | |
5 <?php | |
6 include "Mail/mime.php"; | |
7 | |
8 $mime = new Mail_mime; | |
9 $mime->setSubject('test'); | |
10 | |
11 // A message with text/calendar only | |
12 $mime->setCalendarBody('VCALENDAR'); | |
13 | |
14 echo $mime->getMessage(); | |
15 echo "\n---\n"; | |
16 | |
17 // A message with alternative text | |
18 $mime->setTXTBody('vcalendar'); | |
19 $msg = $mime->getMessage(); | |
20 | |
21 echo preg_replace('/=_[0-9a-z]+/', '*', $msg); | |
22 --EXPECT-- | |
23 MIME-Version: 1.0 | |
24 Content-Type: text/calendar; method=request; charset=UTF-8 | |
25 Content-Transfer-Encoding: quoted-printable | |
26 Subject: test | |
27 | |
28 VCALENDAR | |
29 --- | |
30 MIME-Version: 1.0 | |
31 Content-Type: multipart/alternative; | |
32 boundary="*" | |
33 Content-Transfer-Encoding: quoted-printable | |
34 Subject: test | |
35 | |
36 --* | |
37 Content-Transfer-Encoding: quoted-printable | |
38 Content-Type: text/plain; charset=ISO-8859-1 | |
39 | |
40 vcalendar | |
41 --* | |
42 Content-Transfer-Encoding: quoted-printable | |
43 Content-Type: text/calendar; method=request; charset=UTF-8 | |
44 | |
45 VCALENDAR | |
46 --*-- |