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
13 parents ceecda2 + 84a7972 + f6501d5 + 74b0454 + ea99bf1 + e2703e7 + 90db7ae + b2f5380 + d6ee2dd + 2dae9df + 15a2e1f + 00d7ef1 + 88e29ab commit 04f5596
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion test/MailTest.php
Expand Up @@ -38,8 +38,15 @@
*/
class MailTest extends \PHPUnit_Framework_TestCase
{
/**
* Stores the original set timezone
* @var string
*/
private $_originaltimezone;

public function setUp()
{
$this->_originaltimezone = date_default_timezone_get();
// Set timezone to avoid "date(): It is not safe to rely on the system's timezone settings."
// message.
date_default_timezone_set('GMT');
Expand All @@ -49,6 +56,7 @@ public function tearDown()
{
Mail\Mail::clearDefaultFrom();
Mail\Mail::clearDefaultReplyTo();
date_default_timezone_set($this->_originaltimezone);
}

/**
Expand Down Expand Up @@ -908,7 +916,7 @@ public function testSendmailTransportThrowsExceptionWithInvalidParams()
$mail->send($transport);
$this->fail('Exception should have been thrown, but wasn\'t');
} catch(Transport\Exception $e) {
// do nothing
// do nothing
}
}

Expand Down

0 comments on commit 04f5596

Please sign in to comment.