public function testGetRawOffsetWithUnknownTimezone() { $this->
expectException(\Exception::
class);
$this->
expectExceptionMessage('Unknown or bad timezone (foobar)'
);
Timezones::
getRawOffset('foobar'
);
} public function testGetGmtOffset() { // timezones free from DST changes to avoid time-based variance
$this->
assertSame('GMT+00:00', Timezones::
getGmtOffset('Etc/UTC'
));
$this->
assertSame('UTC+00:00', Timezones::
getGmtOffset('Etc/UTC', null, 'fr'
));
$this->
assertSame('GMT +00:00', Timezones::
getGmtOffset('Etc/GMT', null, 'ur'
));
$this->
assertSame('GMT+00:00', Timezones::
getGmtOffset('Etc/GMT', null, 'ur_IN'
));
$this->
assertSame('GMT-03:00', Timezones::
getGmtOffset('America/Buenos_Aires'
));
$this->
assertSame('ཇི་ཨེམ་ཏི་-03:00', Timezones::
getGmtOffset('America/Buenos_Aires', null, 'dz'
));
$this->
assertSame('GMT+05:45', Timezones::
getGmtOffset('Asia/Katmandu'
));
$this->
assertSame('GMT+5:45', Timezones::
getGmtOffset('Asia/Katmandu', null, 'cs'
));
} public function testGetCountryCode() {