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:
@@ -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);*/
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user