assertTrue($result); } } public function testSetTimezoneWithInvalidValue() { $unsupportedTimezone = 'Etc/GMT+10'; $result = call_user_func(array('PHPExcel_Shared_TimeZone','setTimezone'),$unsupportedTimezone); $this->assertFalse($result); } }