summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2016-05-19 09:40:34 +0200
committerJoas Schilling <nickvergessen@owncloud.com>2016-05-19 09:40:34 +0200
commite823d5004457e4bf9fcf343e352169c7fa6a8151 (patch)
tree617317e474735eec97e54c218cf9409928b156dd /tests
parent9a4253ef7c34f9dc71a6a9f7828a10df769f0c32 (diff)
downloadnextcloud-server-e823d5004457e4bf9fcf343e352169c7fa6a8151.tar.gz
nextcloud-server-e823d5004457e4bf9fcf343e352169c7fa6a8151.zip
Fix "Class 'Test\Security\DateTime' not found"
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/security/CertificateTest.php10
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());
}