Skip to content

Commit

Permalink
Add attachments test (ref #55)
Browse files Browse the repository at this point in the history
  • Loading branch information
ddeboer committed Jan 23, 2015
1 parent 9b1d147 commit f34035e
Show file tree
Hide file tree
Showing 2 changed files with 1,758 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/MessageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,15 @@ public function testDelete()
$this->assertNotEquals('Message C', $message->getSubject());
}
}

public function testGetAttachments()
{
$this->mailbox->addMessage(file_get_contents(__DIR__.'/fixtures/attachments'));
$message = $this->mailbox->getMessage(1);
$atts = $message->getAttachments();

foreach ($atts as $a) {
var_dump($a);
}
}
}
Loading

0 comments on commit f34035e

Please sign in to comment.