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' into hotfix/ZF-3821
Browse files Browse the repository at this point in the history
Conflicts:
	tests/Zend/InfoCard/XmlParsingTest.php
  • Loading branch information
Pádraic Brady committed Aug 26, 2011
10 parents f6501d5 + 74b0454 + ea99bf1 + e2703e7 + 90db7ae + b2f5380 + d6ee2dd + 2dae9df + 15a2e1f + 84a7972 commit 00d7ef1
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 00d7ef1

Please sign in to comment.