File: 012.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 (21 lines) | stat: -rw-r--r-- 423 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--TEST--
Check mailparse_mimemessage_extract_uue
--SKIPIF--
<?php
/* vim600: sw=4 ts=4 fdm=marker syn=php
*/
if (!extension_loaded("mailparse")) print "skip"; ?>
--FILE--
<?php
$msg = new MimeMessage("file", dirname(__FILE__) . "/testdata/oeuue");
var_dump( $msg->extract_uue(0, MAILPARSE_EXTRACT_RETURN));
?>
--EXPECT--
string(88) "FooBar - Baaaaa

Requirements: 
	o php with mailparse
    o virus scanner (optional)
	

"