|
@@ 541-554 (lines=14) @@
|
| 538 |
|
$this->assertEmpty($builtMessage); |
| 539 |
|
} |
| 540 |
|
|
| 541 |
|
public function testBuildMessagePlain() |
| 542 |
|
{ |
| 543 |
|
$message = 'Plain text message'; |
| 544 |
|
|
| 545 |
|
$archangel = new Archangel(); |
| 546 |
|
$plainMessageProperty = $this->getProtectedProperty('plainMessage'); |
| 547 |
|
$plainMessageProperty->setValue($archangel, $message); |
| 548 |
|
$htmlMessageProperty = $this->getProtectedProperty('htmlMessage'); |
| 549 |
|
$htmlMessageProperty->setValue($archangel, ''); |
| 550 |
|
$buildMethod = $this->getProtectedMethod('buildMessage'); |
| 551 |
|
$builtMessage = $buildMethod->invoke($archangel); |
| 552 |
|
|
| 553 |
|
$this->assertEquals($message, $builtMessage); |
| 554 |
|
} |
| 555 |
|
|
| 556 |
|
public function testBuildMessageHtml() |
| 557 |
|
{ |
|
@@ 556-569 (lines=14) @@
|
| 553 |
|
$this->assertEquals($message, $builtMessage); |
| 554 |
|
} |
| 555 |
|
|
| 556 |
|
public function testBuildMessageHtml() |
| 557 |
|
{ |
| 558 |
|
$message = '<p>HTML Message.</p>'; |
| 559 |
|
|
| 560 |
|
$archangel = new Archangel(); |
| 561 |
|
$plainMessageProperty = $this->getProtectedProperty('plainMessage'); |
| 562 |
|
$plainMessageProperty->setValue($archangel, ''); |
| 563 |
|
$htmlMessageProperty = $this->getProtectedProperty('htmlMessage'); |
| 564 |
|
$htmlMessageProperty->setValue($archangel, $message); |
| 565 |
|
$buildMethod = $this->getProtectedMethod('buildMessage'); |
| 566 |
|
$builtMessage = $buildMethod->invoke($archangel); |
| 567 |
|
|
| 568 |
|
$this->assertEquals($message, $builtMessage); |
| 569 |
|
} |
| 570 |
|
|
| 571 |
|
public function testBuildMessageMultipart() |
| 572 |
|
{ |