- $wgLocaltimezone = $timezone;
- $wgLocalTZoffset = 0;
-
- $this->assertEquals(
- strval( $expectedDate ),
- strval( $en->userAdjust( $inputDate, '' ) ),
- "User adjust {$inputDate} with timezone {$timezone} should give {$expectedDate}"
- );
- }
-
- function dataUserAdjustWithTimezone() {
- return array(
- array( 20111028233711, 'Europe/Warsaw', 20111029013711 ),
- array( 20111108205929, 'Europe/Warsaw', 20111108215929 ),
- );
+ $this->assertEquals(
+ strval( $data[2] ),
+ strval( $en->userAdjust( $data[0], '' ) ),
+ "User adjust {$data[0]} by {$data[1]} minutes should give {$data[2]}"
+ );
+ }