Skip to content

Commit

Permalink
Set timezone in the PHPUnit config
Browse files Browse the repository at this point in the history
  • Loading branch information
kylekatarnls committed Nov 25, 2021
1 parent 7f3924a commit c4c6e24
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
3 changes: 3 additions & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
<directory suffix=".php">src/</directory>
</whitelist>
</filter>
<php>
<ini name="date.timezone" value="UTC"/>
</php>
<logging>
<log type="tap" target="build/report.tap"/>
<log type="junit" target="build/report.junit.xml"/>
Expand Down
5 changes: 0 additions & 5 deletions tests/OpeningHoursCustomClassTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@

class OpeningHoursCustomClassTest extends TestCase
{
protected function setUp()
{
date_default_timezone_set('UTC');
}

/** @test */
public function it_can_use_immutable_date_time()
{
Expand Down
5 changes: 0 additions & 5 deletions tests/OpeningHoursTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@

class OpeningHoursTest extends TestCase
{
protected function setUp()
{
date_default_timezone_set('UTC');
}

/** @test */
public function it_can_return_the_opening_hours_for_a_regular_week()
{
Expand Down

0 comments on commit c4c6e24

Please sign in to comment.