mirror of
https://github.com/e107inc/e107.git
synced 2025-04-22 05:31:58 +02:00
Added another date test for the future.
This commit is contained in:
parent
b4b649eeb6
commit
429a61a6ee
@ -184,6 +184,15 @@
|
||||
$newer = strtotime("+10 seconds");
|
||||
$actual = $this->dateObj->computeLapse($newer, time(), false, true, 'long');
|
||||
$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);*/
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user