| @@ 282-292 (lines=11) @@ | ||
| 279 | $this->assertAttributeEquals('<p>An HTML message.</p>', 'htmlMessage', $archangel); |
|
| 280 | } |
|
| 281 | ||
| 282 | public function testAddAttachment() |
|
| 283 | { |
|
| 284 | $archangel = new Archangel(); |
|
| 285 | $archangel->addAttachment('path', 'type'); |
|
| 286 | ||
| 287 | $this->assertAttributeContains( |
|
| 288 | array('path' => 'path', 'type' => 'type', 'title' => ''), |
|
| 289 | 'attachments', |
|
| 290 | $archangel |
|
| 291 | ); |
|
| 292 | } |
|
| 293 | ||
| 294 | public function testAddAttachmentMultiple() |
|
| 295 | { |
|
| @@ 312-322 (lines=11) @@ | ||
| 309 | ); |
|
| 310 | } |
|
| 311 | ||
| 312 | public function testAddAttachmentWithTitle() |
|
| 313 | { |
|
| 314 | $archangel = new Archangel(); |
|
| 315 | $archangel->addAttachment('path', 'type', 'title'); |
|
| 316 | ||
| 317 | $this->assertAttributeContains( |
|
| 318 | array('path' => 'path', 'type' => 'type', 'title' => 'title'), |
|
| 319 | 'attachments', |
|
| 320 | $archangel |
|
| 321 | ); |
|
| 322 | } |
|
| 323 | ||
| 324 | public function testSend() |
|
| 325 | { |
|