Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor TimeTest #1316

Merged
merged 1 commit into from
Oct 16, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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