Skip to content

Commit 21cdd4d

Browse files
committed
Remove dependency on util.DateUtil
1 parent aa41131 commit 21cdd4d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/php/rdbms/unittest/DataSetTest.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use rdbms\{Column, DBEvent, DriverManager, Peer, ResultIterator, SQLException, Statement};
77
use unittest\{Expect, Test, TestCase};
88
use util\log\BoundLogObserver;
9-
use util\{Date, DateUtil, NoSuchElementException};
9+
use util\{Date, NoSuchElementException};
1010

1111
/**
1212
* O/R-mapping API unit test
@@ -244,7 +244,7 @@ public function multipleResultForDoSelect() {
244244
'job_id' => 9,
245245
'title' => 'PHP programmer',
246246
'valid_from' => Date::now(),
247-
'expire_at' => DateUtil::addDays(Date::now(), 7)
247+
'expire_at' => new Date(time() + 86400 * 7),
248248
]
249249
]));
250250

0 commit comments

Comments
 (0)