| @@ 400-410 (lines=11) @@ | ||
| 397 | ); |
|
| 398 | } |
|
| 399 | ||
| 400 | public function testAddAttachment() |
|
| 401 | { |
|
| 402 | $archangel = new Archangel(); |
|
| 403 | $archangel->addAttachment('path', 'type'); |
|
| 404 | ||
| 405 | $this->assertAttributeContains( |
|
| 406 | array('path' => 'path', 'type' => 'type', 'title' => ''), |
|
| 407 | 'attachments', |
|
| 408 | $archangel |
|
| 409 | ); |
|
| 410 | } |
|
| 411 | ||
| 412 | public function testAddAttachmentMultiple() |
|
| 413 | { |
|
| @@ 430-440 (lines=11) @@ | ||
| 427 | ); |
|
| 428 | } |
|
| 429 | ||
| 430 | public function testAddAttachmentWithTitle() |
|
| 431 | { |
|
| 432 | $archangel = new Archangel(); |
|
| 433 | $archangel->addAttachment('path', 'type', 'title'); |
|
| 434 | ||
| 435 | $this->assertAttributeContains( |
|
| 436 | array('path' => 'path', 'type' => 'type', 'title' => 'title'), |
|
| 437 | 'attachments', |
|
| 438 | $archangel |
|
| 439 | ); |
|
| 440 | } |
|
| 441 | ||
| 442 | public function testSend() |
|
| 443 | { |
|