@@ 296-306 (lines=11) @@ | ||
293 | $this->assertAttributeEquals('<p>An HTML message.</p>', 'htmlMessage', $archangel); |
|
294 | } |
|
295 | ||
296 | public function testAddAttachment() |
|
297 | { |
|
298 | $archangel = new Archangel(); |
|
299 | $archangel->addAttachment('path', 'type'); |
|
300 | ||
301 | $this->assertAttributeContains( |
|
302 | array('path' => 'path', 'type' => 'type', 'title' => ''), |
|
303 | 'attachments', |
|
304 | $archangel |
|
305 | ); |
|
306 | } |
|
307 | ||
308 | public function testAddAttachmentMultiple() |
|
309 | { |
|
@@ 326-336 (lines=11) @@ | ||
323 | ); |
|
324 | } |
|
325 | ||
326 | public function testAddAttachmentWithTitle() |
|
327 | { |
|
328 | $archangel = new Archangel(); |
|
329 | $archangel->addAttachment('path', 'type', 'title'); |
|
330 | ||
331 | $this->assertAttributeContains( |
|
332 | array('path' => 'path', 'type' => 'type', 'title' => 'title'), |
|
333 | 'attachments', |
|
334 | $archangel |
|
335 | ); |
|
336 | } |
|
337 | ||
338 | public function testSend() |
|
339 | { |