diff --git a/tests/unit/e_dateTest.php b/tests/unit/e_dateTest.php index fd1b0c2f9..379608f0d 100644 --- a/tests/unit/e_dateTest.php +++ b/tests/unit/e_dateTest.php @@ -167,6 +167,13 @@ $actual = $this->dateObj->computeLapse($older, $newer, false, true, 'long'); $expected = '1 day, 22 hours, 49 minutes, 55 seconds ago'; $this->assertEquals($expected, $actual); + + + //FIXME fails with future dates. Expected: "In 2 weeks" or "2 weeks from now" + $newer = strtotime("+2 weeks"); + $actual = $this->dateObj->computeLapse($newer, time(), false, true, 'short'); + + // var_dump($actual); } /** @@ -232,4 +239,11 @@ // $this->fail(print_r($result,true)); } + + + + + + + }