Added additional Attachment test

This commit is contained in:
Robert Hafner 2013-12-08 23:12:08 -08:00
parent 59d5b8ffc8
commit fffa423429

View File

@ -120,6 +120,10 @@ class MessageTest extends \PHPUnit_Framework_TestCase
$this->assertCount(2, $attachments); $this->assertCount(2, $attachments);
foreach($attachments as $attachment) foreach($attachments as $attachment)
$this->assertInstanceOf('\Fetch\Attachment', $attachment, 'getAttachments returns Fetch\Attachment objects.'); $this->assertInstanceOf('\Fetch\Attachment', $attachment, 'getAttachments returns Fetch\Attachment objects.');
$attachment = $messageWithAttachments->getAttachments('Test_card.png.zip');
$this->assertInstanceOf('\Fetch\Attachment', $attachment, 'getAttachment returns specified Fetch\Attachment object.');
} }
public function testCheckFlag() public function testCheckFlag()