From e823d5004457e4bf9fcf343e352169c7fa6a8151 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Thu, 19 May 2016 09:40:34 +0200 Subject: [PATCH] Fix "Class 'Test\Security\DateTime' not found" --- tests/lib/security/CertificateTest.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/lib/security/CertificateTest.php b/tests/lib/security/CertificateTest.php index 888a4ba1f1..6f7d7d4a37 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()); }