diff options
Diffstat (limited to 'tests/NetscapeBookmarkUtils/BookmarkImportTest.php')
-rw-r--r-- | tests/NetscapeBookmarkUtils/BookmarkImportTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/NetscapeBookmarkUtils/BookmarkImportTest.php b/tests/NetscapeBookmarkUtils/BookmarkImportTest.php index f838f259..5fc1d1e8 100644 --- a/tests/NetscapeBookmarkUtils/BookmarkImportTest.php +++ b/tests/NetscapeBookmarkUtils/BookmarkImportTest.php | |||
@@ -628,7 +628,7 @@ class BookmarkImportTest extends PHPUnit_Framework_TestCase | |||
628 | $this->assertEquals($nbLinks, count($history)); | 628 | $this->assertEquals($nbLinks, count($history)); |
629 | foreach ($history as $value) { | 629 | foreach ($history as $value) { |
630 | $this->assertEquals(History::CREATED, $value['event']); | 630 | $this->assertEquals(History::CREATED, $value['event']); |
631 | $this->assertTrue(new DateTime('-5 seconds') < DateTime::createFromFormat(DateTime::ATOM, $value['datetime'])); | 631 | $this->assertTrue(new DateTime('-5 seconds') < $value['datetime']); |
632 | $this->assertTrue(is_int($value['id'])); | 632 | $this->assertTrue(is_int($value['id'])); |
633 | } | 633 | } |
634 | 634 | ||
@@ -638,7 +638,7 @@ class BookmarkImportTest extends PHPUnit_Framework_TestCase | |||
638 | $this->assertEquals($nbLinks * 2, count($history)); | 638 | $this->assertEquals($nbLinks * 2, count($history)); |
639 | for ($i = 0 ; $i < $nbLinks ; $i++) { | 639 | for ($i = 0 ; $i < $nbLinks ; $i++) { |
640 | $this->assertEquals(History::UPDATED, $history[$i]['event']); | 640 | $this->assertEquals(History::UPDATED, $history[$i]['event']); |
641 | $this->assertTrue(new DateTime('-5 seconds') < DateTime::createFromFormat(DateTime::ATOM, $history[$i]['datetime'])); | 641 | $this->assertTrue(new DateTime('-5 seconds') < $history[$i]['datetime']); |
642 | $this->assertTrue(is_int($history[$i]['id'])); | 642 | $this->assertTrue(is_int($history[$i]['id'])); |
643 | } | 643 | } |
644 | } | 644 | } |