ActionScheduler_TimezoneHelper_Test
extends ActionScheduler_UnitTestCase
in package
Class ActionScheduler_UnitTestCase
Tags
Table of Contents
- $existing_timezone : mixed
- count() : int
- Counts the number of test cases executed by run(TestResult result).
- local_timezone_offsets_provider() : mixed
- local_timezone_provider() : mixed
- run() : mixed
- We want to run every test multiple times using a different timezone to make sure that they are unaffected by changes to PHP's timezone.
- test_local_timezone_offsets() : mixed
- Ensure that most GMT offsets don't return UTC as the timezone.
- test_local_timezone_strings() : mixed
- Ensure that the timezone string we expect works properly.
Properties
$existing_timezone
protected
mixed
$existing_timezone
Methods
count()
Counts the number of test cases executed by run(TestResult result).
public
count() : int
Return values
int —local_timezone_offsets_provider()
public
local_timezone_offsets_provider() : mixed
Return values
mixed —local_timezone_provider()
public
local_timezone_provider() : mixed
Return values
mixed —run()
We want to run every test multiple times using a different timezone to make sure that they are unaffected by changes to PHP's timezone.
public
run([PHPUnit_Framework_TestResult $result = NULL ]) : mixed
Parameters
- $result : PHPUnit_Framework_TestResult = NULL
Return values
mixed —test_local_timezone_offsets()
Ensure that most GMT offsets don't return UTC as the timezone.
public
test_local_timezone_offsets( $gmt_offset) : mixed
Parameters
Tags
Return values
mixed —test_local_timezone_strings()
Ensure that the timezone string we expect works properly.
public
test_local_timezone_strings( $timezone_string) : mixed