diff options
Diffstat (limited to 'tests/lib')
-rw-r--r-- | tests/lib/security/CertificateTest.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/lib/security/CertificateTest.php b/tests/lib/security/CertificateTest.php index 888a4ba1f13..6f7d7d4a37f 100644 --- a/tests/lib/security/CertificateTest.php +++ b/tests/lib/security/CertificateTest.php @@ -76,18 +76,18 @@ class CertificateTest extends \Test\TestCase { } public function testGetIssueDate() { - $expected = new DateTime('2015-08-27 20:03:42 GMT'); + $expected = new \DateTime('2015-08-27 20:03:42 GMT'); $this->assertEquals($expected->getTimestamp(), $this->goodCertificate->getIssueDate()->getTimestamp()); - $expected = new DateTime('2015-08-27 20:19:13 GMT'); + $expected = new \DateTime('2015-08-27 20:19:13 GMT'); $this->assertEquals($expected->getTimestamp(), $this->invalidCertificate->getIssueDate()->getTimestamp()); } public function testGetExpireDate() { - $expected = new DateTime('2025-08-24 20:03:42 GMT'); + $expected = new \DateTime('2025-08-24 20:03:42 GMT'); $this->assertEquals($expected->getTimestamp(), $this->goodCertificate->getExpireDate()->getTimestamp()); - $expected = new DateTime('2025-08-24 20:19:13 GMT'); + $expected = new \DateTime('2025-08-24 20:19:13 GMT'); $this->assertEquals($expected->getTimestamp(), $this->invalidCertificate->getExpireDate()->getTimestamp()); - $expected = new DateTime('2014-08-28 09:12:43 GMT'); + $expected = new \DateTime('2014-08-28 09:12:43 GMT'); $this->assertEquals($expected->getTimestamp(), $this->expiredCertificate->getExpireDate()->getTimestamp()); } |