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

Commit

Permalink
Merge branch 'hotfix/zendframework/zendframework#5962-mime-empty-stri…
Browse files Browse the repository at this point in the history
  • Loading branch information
Ocramius committed Apr 30, 2014
4 parents d26cf74 + 2beabf9 + de855cb + 36ac2c8 commit e366253
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 e366253

Please sign in to comment.