File: 009.phpt

package info (click to toggle)
php-mailparse 3.1.4%2B2.1.7~dev20160128-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,484 kB
  • sloc: ansic: 4,080; xml: 363; php: 38; makefile: 2
file content (53 lines) | stat: -rw-r--r-- 896 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
--TEST--
Multiple UUE attachments not recognized
--SKIPIF--
<?php
/* vim600: sw=4 ts=4 fdm=marker syn=php
*/
if (!extension_loaded("mailparse")) print "skip"; ?>
--FILE--
<?php
error_reporting(E_ALL);
$msg = new MimeMessage("file", dirname(__FILE__) . "/testdata/oeuue");
$n = $msg->get_child_count();
$uue = $msg->enum_uue();
var_dump($n);
var_dump($uue);
?>
--EXPECT--
int(0)
array(3) {
  [0]=>
  array(4) {
    ["filename"]=>
    string(11) "README1.dat"
    ["start-pos"]=>
    int(654)
    ["filesize"]=>
    int(88)
    ["end-pos"]=>
    int(785)
  }
  [1]=>
  array(4) {
    ["filename"]=>
    string(11) "README2.dat"
    ["start-pos"]=>
    int(808)
    ["filesize"]=>
    int(88)
    ["end-pos"]=>
    int(939)
  }
  [2]=>
  array(4) {
    ["filename"]=>
    string(11) "README3.dat"
    ["start-pos"]=>
    int(962)
    ["filesize"]=>
    int(88)
    ["end-pos"]=>
    int(1093)
  }
}