mail : Complete rewrite. Allow to read an existing mail
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2720 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
@@ -11,7 +11,7 @@ class test_mail extends PHPUnit_Framework_TestCase
|
||||
$mail = new mail ();
|
||||
$mail->setBodyText ("TEST");
|
||||
$res = $mail->getMail ();
|
||||
$this->assertRegExp ("#TEST\r\n$#", $res);
|
||||
$this->assertRegExp ("#TEST\n$#", $res);
|
||||
}
|
||||
|
||||
public function test_setBodyHTML1 ()
|
||||
@@ -19,7 +19,7 @@ class test_mail extends PHPUnit_Framework_TestCase
|
||||
$mail = new mail ();
|
||||
$mail->setBodyHTML ("TEST");
|
||||
$res = $mail->getMail ();
|
||||
$this->assertRegExp ("#^\r\nTEST\r$#m", $res);
|
||||
$this->assertRegExp ("#^\r\nTEST\n$#m", $res);
|
||||
}
|
||||
|
||||
public function test_setGetBodyText1 ()
|
||||
@@ -27,7 +27,7 @@ class test_mail extends PHPUnit_Framework_TestCase
|
||||
$mail = new mail ();
|
||||
$mail->setBodyText ("TEST");
|
||||
$res = $mail->getBodyText ();
|
||||
$this->assertSame ("TEST", $res);
|
||||
$this->assertSame ("TEST\n", $res);
|
||||
}
|
||||
|
||||
public function test_setGetBodyHtml1 ()
|
||||
@@ -35,7 +35,7 @@ class test_mail extends PHPUnit_Framework_TestCase
|
||||
$mail = new mail ();
|
||||
$mail->setBodyHtml ("TEST");
|
||||
$res = $mail->getBodyHtml ();
|
||||
$this->assertSame ("TEST", $res);
|
||||
$this->assertSame ("TEST\n", $res);
|
||||
}
|
||||
|
||||
public function test_setFrom1 ()
|
||||
|
||||
Reference in New Issue
Block a user