You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
712 B
33 lines
712 B
![]()
14 years ago
|
<?php
|
||
|
|
||
|
class TestMail extends UnitTestCase {
|
||
|
|
||
|
public function __construct() {
|
||
|
$this->UnitTestCase('Mailing library - main/inc/lib/mail.lib.inc.test.php');
|
||
|
}
|
||
|
|
||
|
function testApiMail() {
|
||
|
ob_start();
|
||
|
$recipient_name='';
|
||
|
$recipient_email='';
|
||
|
$subject='';
|
||
|
$message='';
|
||
|
$res=@api_mail($recipient_name, $recipient_email, $subject, $message);
|
||
|
ob_end_clean();
|
||
|
$this->assertTrue(is_numeric($res));
|
||
|
//var_dump($res);
|
||
|
}
|
||
|
|
||
|
function testApiMailHtml() {
|
||
|
ob_start();
|
||
|
$recipient_name='';
|
||
|
$recipient_email='';
|
||
|
$subject='';
|
||
|
$res=@api_mail_html($recipient_name, $recipient_email, $subject);
|
||
|
ob_end_clean();
|
||
|
$this->assertTrue(is_numeric($res));
|
||
|
//var_dump($res);
|
||
|
}
|
||
|
}
|
||
|
?>
|