Mercurial > hg > rc1
comparison vendor/pear/mail_mime/tests/sleep_wakeup_EOL-bug3488-part2.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 #3488 Sleep/Wakeup EOL Consistency - Part 2 | |
3 --SKIPIF-- | |
4 if (!is_readable('sleep_wakeup_data')) { | |
5 echo "skip No data. Part 1 must run first.\n"; | |
6 } | |
7 --FILE-- | |
8 <?php | |
9 require_once('Mail/mime.php'); | |
10 $filename = 'sleep_wakeup_data'; | |
11 $fp = fopen($filename, 'r'); | |
12 $smm = fread($fp, filesize($filename)); | |
13 fclose($fp); | |
14 @unlink($filename); | |
15 | |
16 $mmData = unserialize($smm); | |
17 $mmData['mm']->get(); | |
18 $x = $mmData['mm']->headers(); | |
19 | |
20 list($h1) = explode("\n", $mmData['header']); | |
21 list($h2) = explode("\n", $x['Content-Type']); | |
22 | |
23 echo ($h1 == $h2) ? "Match" : "No Match"; | |
24 | |
25 ?> | |
26 --EXPECT-- | |
27 Match |