mail.lib.inc.test.php 712 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. class TestMail extends UnitTestCase {
  3. public function __construct() {
  4. $this->UnitTestCase('Mailing library - main/inc/lib/mail.lib.inc.test.php');
  5. }
  6. function testApiMail() {
  7. ob_start();
  8. $recipient_name='';
  9. $recipient_email='';
  10. $subject='';
  11. $message='';
  12. $res=@api_mail($recipient_name, $recipient_email, $subject, $message);
  13. ob_end_clean();
  14. $this->assertTrue(is_numeric($res));
  15. //var_dump($res);
  16. }
  17. function testApiMailHtml() {
  18. ob_start();
  19. $recipient_name='';
  20. $recipient_email='';
  21. $subject='';
  22. $res=@api_mail_html($recipient_name, $recipient_email, $subject);
  23. ob_end_clean();
  24. $this->assertTrue(is_numeric($res));
  25. //var_dump($res);
  26. }
  27. }
  28. ?>