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

Commit

Permalink
Merge branch 'master' of git://git.zendframework.com/zf
Browse files Browse the repository at this point in the history
  • Loading branch information
DASPRiD committed Sep 20, 2011
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/MessageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,13 @@ public function testGetMime()
{
$msg = new Mime\Message(); // No Parts
$m = $msg->getMime();
$this->assertType('\Zend\Mime\Mime', $m);
$this->assertInstanceOf('Zend\\Mime\\Mime', $m);

$msg = new Mime\Message(); // No Parts
$mime = new Mime\Mime('1234');
$msg->setMime($mime);
$m2 = $msg->getMime();
$this->assertType('\Zend\Mime\Mime', $m2);
$this->assertInstanceOf('Zend\\Mime\\Mime', $m2);
$this->assertEquals('1234', $m2->boundary());
}

Expand Down
22 changes: 22 additions & 0 deletions test/MimeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,28 @@
*/
class MimeTest extends \PHPUnit_Framework_TestCase
{
/**
* Stores the original set timezone
* @var string
*/
private $_originaltimezone;

/**
* Setup environment
*/
public function setUp()
{
$this->_originaltimezone = date_default_timezone_get();
}

/**
* Teardown environment
*/
public function tearDown()
{
date_default_timezone_set($this->_originaltimezone);
}

public function testBoundary()
{
// check boundary for uniqueness
Expand Down

0 comments on commit 97b778e

Please sign in to comment.