Skip to content

Commit

Permalink
Merge pull request #1316 from jim-parry/refactor/timetest
Browse files Browse the repository at this point in the history
Refactor TimeTest
  • Loading branch information
lonnieezell authored Oct 16, 2018
2 parents 4e11f5f + f7168fa commit f466959
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/system/I18n/TimeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function testNewTimeNow()

$time = new Time(null, 'America/Chicago');

$this->assertEquals($formatter->format(strtotime('now')), (string)$time);
$this->assertEquals($formatter->format($time), (string)$time);
}

public function testTimeWithTimezone()
Expand All @@ -41,7 +41,7 @@ public function testTimeWithTimezone()

$time = new Time('now', 'Europe/London');

$this->assertEquals($formatter->format(strtotime('now')), (string)$time);
$this->assertEquals($formatter->format($time), (string)$time);
}

public function testTimeWithTimezoneAndLocale()
Expand All @@ -57,7 +57,7 @@ public function testTimeWithTimezoneAndLocale()

$time = new Time('now', 'Europe/London', 'fr_FR');

$this->assertEquals($formatter->format(strtotime('now')), (string)$time);
$this->assertEquals($formatter->format($time), (string)$time);
}

public function testTimeWithDateTimeZone()
Expand All @@ -73,7 +73,7 @@ public function testTimeWithDateTimeZone()

$time = new Time('now', new \DateTimeZone('Europe/London'), 'fr_FR');

$this->assertEquals($formatter->format(strtotime('now')), (string)$time);
$this->assertEquals($formatter->format($time), (string)$time);
}

public function testToDateTime()
Expand Down

0 comments on commit f466959

Please sign in to comment.