This commit is contained in:
Synchro 2013-01-31 12:04:26 +01:00
parent b53ab113a8
commit 691d7b086c
1 changed files with 8 additions and 9 deletions

View File

@ -1028,17 +1028,17 @@ class phpmailerTest extends PHPUnit_Framework_TestCase
*/
function test_Signing()
{
$this->Mail->Body = "This was done using the SMTP keep-alive.";
$this->Mail->Body = 'This message is S/MIME signed.';
$this->BuildBody();
$dn = array(
"countryName" => "UK",
"stateOrProvinceName" => "Here",
"localityName" => "There",
"organizationName" => "PHP",
"organizationalUnitName" => "PHPMailer",
"commonName" => "PHPMailer Test",
"emailAddress" => "phpmailer@example.com"
'countryName' => 'UK',
'stateOrProvinceName' => 'Here',
'localityName' => 'There',
'organizationName' => 'PHP',
'organizationalUnitName' => 'PHPMailer',
'commonName' => 'PHPMailer Test',
'emailAddress' => 'phpmailer@example.com'
);
$password = 'password';
$certfile = 'certfile.txt';
@ -1062,7 +1062,6 @@ class phpmailerTest extends PHPUnit_Framework_TestCase
$keyfile,
$password
);
//$this->Mail->Send();
$this->assertTrue($this->Mail->Send(), 'S/MIME signing failed');
unlink($certfile);
unlink($keyfile);