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://github.com/zendframework/zf2
Browse files Browse the repository at this point in the history
  • Loading branch information
sgehrig committed Oct 20, 2011
14 parents a672f98 + 84a7972 + f6501d5 + 74b0454 + ea99bf1 + e2703e7 + 90db7ae + b2f5380 + d6ee2dd + 2dae9df + 15a2e1f + 00d7ef1 + 88e29ab + 04f5596 commit d4b9187
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion test/MailTest.php
Original file line number Diff line number Diff line change
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 d4b9187

Please sign in to comment.