svn: /pear/packages/Crypt_GPG/trunk/tests/ KeyGeneratorTestCase.php
| From: | Michael Gauthier | Date: | Mon, 28 Nov 2011 01:41:16 +0000 |
| Subject: | svn: /pear/packages/Crypt_GPG/trunk/tests/ KeyGeneratorTestCase.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-63113@lists.php.net to get a copy of this message | ||
gauthierm Mon, 28 Nov 2011 01:41:16 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=320062
Log:
Set default time-zone to UTC for strtotime-based tests. This both suppresses a PHP warning for
unconfigured PHP systems and fixes Bug #18963.
Bug: http://pear.php.net/bugs/18963 (unknown)
Changed paths:
U pear/packages/Crypt_GPG/trunk/tests/KeyGeneratorTestCase.php
Modified: pear/packages/Crypt_GPG/trunk/tests/KeyGeneratorTestCase.php
===================================================================
--- pear/packages/Crypt_GPG/trunk/tests/KeyGeneratorTestCase.php 2011-11-28 01:35:00 UTC (rev
320061)
+++ pear/packages/Crypt_GPG/trunk/tests/KeyGeneratorTestCase.php 2011-11-28 01:41:16 UTC (rev
320062)
@@ -228,8 +228,10 @@
*/
public function testSetExpirationDate_string()
{
+ date_default_timezone_set('UTC');
+
$expectedDate = 2000000000;
- $this->generator->setExpirationDate('2033-05-18T00:33:20');
+ $this->generator->setExpirationDate('2033-05-18T03:33:20');
$this->assertAttributeEquals(
$expectedDate,
@@ -248,6 +250,8 @@
*/
public function testSetExpirationDate_invalid_format()
{
+ date_default_timezone_set('UTC');
+
$this->generator->setExpirationDate('this is not a date');
}