Definition at line 26 of file UtcClockTest.php.
◆ setUp()
ILIAS\Data\Clock\UtcClockTest::setUp |
( |
| ) |
|
|
protected |
Definition at line 30 of file UtcClockTest.php.
32 $this->default_timezone = date_default_timezone_get();
◆ tearDown()
ILIAS\Data\Clock\UtcClockTest::tearDown |
( |
| ) |
|
|
protected |
Definition at line 35 of file UtcClockTest.php.
37 date_default_timezone_set($this->default_timezone);
◆ testUtcClockIsNotAffectedByGlobalTimezoneChanges()
ILIAS\Data\Clock\UtcClockTest::testUtcClockIsNotAffectedByGlobalTimezoneChanges |
( |
| ) |
|
Definition at line 40 of file UtcClockTest.php.
42 date_default_timezone_set(
'Europe/Berlin');
43 $clock =
new UtcClock();
45 self::assertSame(
'UTC', $clock->now()->getTimezone()->getName());
◆ $default_timezone
string ILIAS\Data\Clock\UtcClockTest::$default_timezone |
|
private |
The documentation for this class was generated from the following file: