Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
add test in ZendTest\Mail for MimeMessage and remove dependencies of …
Browse files Browse the repository at this point in the history
…ZendTest\MessageTest use statement
  • Loading branch information
samsonasik committed Apr 30, 2014
2 parents 2beabf9 + de855cb commit 36ac2c8
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/MessageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -683,4 +683,16 @@ public function testRestoreFromSerializedString()
$restoredMessage = Message::fromString($serialized);
$this->assertEquals($serialized, $restoredMessage->toString());
}

/**
* @group ZF2-5962
*/
public function testPassEmptyArrayIntoSetPartsOfMimeMessageShouldReturnEmptyBodyString()
{
$mimeMessage = new MimeMessage();
$mimeMessage->setParts(array());

$this->message->setBody($mimeMessage);
$this->assertEquals('', $this->message->getBodyText());
}
}

0 comments on commit 36ac2c8

Please sign in to comment.