diff options
author | Robin Appelman <icewind@owncloud.com> | 2014-08-31 11:06:18 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2014-08-31 11:06:18 +0200 |
commit | bfa0c4b78a977726971f7b48e8f921b8adb56e8b (patch) | |
tree | ccf7691447c95abdd51e24fa4715a37783d4d7b3 /tests | |
parent | 4bc9980f4be1ed9834768b613af6a6e43dc83556 (diff) | |
download | nextcloud-server-bfa0c4b78a977726971f7b48e8f921b8adb56e8b.tar.gz nextcloud-server-bfa0c4b78a977726971f7b48e8f921b8adb56e8b.zip |
Explicitly set the timezones
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/security/certificate.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/lib/security/certificate.php b/tests/lib/security/certificate.php index 9ae68f2cf17..41c8a74b836 100644 --- a/tests/lib/security/certificate.php +++ b/tests/lib/security/certificate.php @@ -55,14 +55,14 @@ class CertificateTest extends \PHPUnit_Framework_TestCase { } function testGetIssueDate() { - $this->assertEquals(new DateTime('2014-08-27 08:45:52'), $this->goodCertificate->getIssueDate()); - $this->assertEquals(new DateTime('2014-08-27 08:48:51'), $this->invalidCertificate->getIssueDate()); + $this->assertEquals((new DateTime('2014-08-27 08:45:52 GMT'))->getTimestamp(), $this->goodCertificate->getIssueDate()->getTimestamp()); + $this->assertEquals((new DateTime('2014-08-27 08:48:51 GMT'))->getTimestamp(), $this->invalidCertificate->getIssueDate()->getTimestamp()); } function testGetExpireDate() { - $this->assertEquals(new DateTime('2015-08-27 08:45:52'), $this->goodCertificate->getExpireDate()); - $this->assertEquals(new DateTime('2015-08-27 08:48:51'), $this->invalidCertificate->getExpireDate()); - $this->assertEquals(new DateTime('2014-08-28 09:12:43'), $this->expiredCertificate->getExpireDate()); + $this->assertEquals((new DateTime('2015-08-27 08:45:52 GMT'))->getTimestamp(), $this->goodCertificate->getExpireDate()->getTimestamp()); + $this->assertEquals((new DateTime('2015-08-27 08:48:51 GMT'))->getTimestamp(), $this->invalidCertificate->getExpireDate()->getTimestamp()); + $this->assertEquals((new DateTime('2014-08-28 09:12:43 GMT'))->getTimestamp(), $this->expiredCertificate->getExpireDate()->getTimestamp()); } /** @@ -85,4 +85,4 @@ class CertificateTest extends \PHPUnit_Framework_TestCase { $this->assertSame('Internet Widgits Pty Ltd', $this->invalidCertificate->getIssuerOrganization()); $this->assertSame('Internet Widgits Pty Ltd', $this->expiredCertificate->getIssuerOrganization()); } -}
\ No newline at end of file +} |