1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-02 20:57:26 +02:00

Added another date test for the future.

This commit is contained in:
Cameron
2020-03-07 10:01:03 -08:00
parent b4b649eeb6
commit 429a61a6ee

View File

@@ -184,6 +184,15 @@
$newer = strtotime("+10 seconds"); $newer = strtotime("+10 seconds");
$actual = $this->dateObj->computeLapse($newer, time(), false, true, 'long'); $actual = $this->dateObj->computeLapse($newer, time(), false, true, 'long');
$this->assertEquals("Just now", $actual); $this->assertEquals("Just now", $actual);
// XXX Improve output
/* $newer = strtotime("18 months ago");
$actual = $this->dateObj->computeLapse($newer, time(), false, true, 'short');
$expected = '18 months ago';
$this->assertEquals($expected, $actual);*/
} }
/** /**