mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +00:00
Removing redundant test case from TimeHelper test
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6483 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
97dded350f
commit
9931e0ef93
1 changed files with 1 additions and 4 deletions
|
@ -72,10 +72,7 @@ class TimeTest extends UnitTestCase {
|
|||
$this->assertEqual($result, '2 weeks, 2 days ago');
|
||||
|
||||
$result = $this->Time->timeAgoInWords(strtotime('2 weeks, 2 days'), 'Y-m-d', true);
|
||||
$this->assertEqual($result, '2 weeks, 2 days');
|
||||
|
||||
$result = $this->Time->timeAgoInWords(strtotime('2 weeks, 2 days'), 'Y-m-d', true);
|
||||
$this->assertEqual($result, '2 weeks, 2 days');
|
||||
$this->assertPattern('/^2 weeks, [1|2] day(s)?$/', $result);
|
||||
|
||||
$result = $this->Time->timeAgoInWords(strtotime('2 months, 2 days'), array('end' => '1 month'));
|
||||
$this->assertEqual($result, 'on ' . date('j/n/y', strtotime('2 months, 2 days')));
|
||||
|
|
Loading…
Add table
Reference in a new issue