Skip to content

Commit

Permalink
Update TimeTest.php
Browse files Browse the repository at this point in the history
  • Loading branch information
burzum committed Jul 17, 2015
1 parent f411e64 commit bbbae6e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/TestCase/I18n/TimeTest.php
Expand Up @@ -829,17 +829,17 @@ public function testParseDateDifferentTimezone()
}

/**
* Tests the remaining time calculation.
* Tests the "from now" time calculation.
*
* @return void
*/
public function testRemainingTime()
public function testFromNow()
{
$date = clone $this->now;
$date->modify('-1 year');
$date->modify('-6 days');
$date->modify('-51 seconds');
$interval = Time::remainingTime($date);
$interval = Time::fromNow($date);
$result = $interval->format("%y %m %d %H %i %s");
$this->assertEquals($result, '1 0 6 00 0 51');
}
Expand Down

0 comments on commit bbbae6e

Please sign in to comment.