@@ -291,10 +291,6 @@ public function provideTimeZones()
291
291
*/
292
292
public function testDumpPeriod ($ start , $ interval , $ end , $ options , $ expected )
293
293
{
294
- if (defined ('HHVM_VERSION_ID ' ) || \PHP_VERSION_ID < 50620 || (\PHP_VERSION_ID >= 70000 && \PHP_VERSION_ID < 70005 )) {
295
- $ this ->markTestSkipped ();
296
- }
297
-
298
294
$ p = new \DatePeriod (new \DateTime ($ start ), new \DateInterval ($ interval ), is_int ($ end ) ? $ end : new \DateTime ($ end ), $ options );
299
295
300
296
$ xDump = <<<EODUMP
@@ -311,10 +307,6 @@ public function testDumpPeriod($start, $interval, $end, $options, $expected)
311
307
*/
312
308
public function testCastPeriod ($ start , $ interval , $ end , $ options , $ xPeriod , $ xDates )
313
309
{
314
- if (defined ('HHVM_VERSION_ID ' ) || \PHP_VERSION_ID < 50620 || (\PHP_VERSION_ID >= 70000 && \PHP_VERSION_ID < 70005 )) {
315
- $ this ->markTestSkipped ();
316
- }
317
-
318
310
$ p = new \DatePeriod (new \DateTime ($ start ), new \DateInterval ($ interval ), is_int ($ end ) ? $ end : new \DateTime ($ end ), $ options );
319
311
$ stub = new Stub ();
320
312
@@ -346,9 +338,6 @@ public function testCastPeriod($start, $interval, $end, $options, $xPeriod, $xDa
346
338
347
339
public function providePeriods ()
348
340
{
349
- $ i = new \DateInterval ('PT0S ' );
350
- $ ms = \PHP_VERSION_ID >= 70100 && isset ($ i ->f ) ? '.0 ' : '' ;
351
-
352
341
$ periods = array (
353
342
array ('2017-01-01 ' , 'P1D ' , '2017-01-03 ' , 0 , 'every + 1d, from 2017-01-01 00:00:00 (included) to 2017-01-03 00:00:00 ' , '1) 2017-01-01%a2) 2017-01-02 ' ),
354
343
array ('2017-01-01 ' , 'P1D ' , 1 , 0 , 'every + 1d, from 2017-01-01 00:00:00 (included) recurring 2 time/s ' , '1) 2017-01-01%a2) 2017-01-02 ' ),
@@ -365,8 +354,8 @@ public function providePeriods()
365
354
array ('2017-01-01 01:00:00 ' , 'P1D ' , '2017-01-03 01:00:00 ' , 0 , 'every + 1d, from 2017-01-01 01:00:00 (included) to 2017-01-03 01:00:00 ' , '1) 2017-01-01 01:00:00%a2) 2017-01-02 01:00:00 ' ),
366
355
array ('2017-01-01 01:00:00 ' , 'P1D ' , 1 , 0 , 'every + 1d, from 2017-01-01 01:00:00 (included) recurring 2 time/s ' , '1) 2017-01-01 01:00:00%a2) 2017-01-02 01:00:00 ' ),
367
356
368
- array ('2017-01-01 ' , 'P1DT1H ' , '2017-01-03 ' , 0 , " every + 1d 01:00:00 $ ms , from 2017-01-01 00:00:00 (included) to 2017-01-03 00:00:00 " , '1) 2017-01-01 00:00:00%a2) 2017-01-02 01:00:00 ' ),
369
- array ('2017-01-01 ' , 'P1DT1H ' , 1 , 0 , " every + 1d 01:00:00 $ ms , from 2017-01-01 00:00:00 (included) recurring 2 time/s " , '1) 2017-01-01 00:00:00%a2) 2017-01-02 01:00:00 ' ),
357
+ array ('2017-01-01 ' , 'P1DT1H ' , '2017-01-03 ' , 0 , ' every + 1d 01:00:00.0 , from 2017-01-01 00:00:00 (included) to 2017-01-03 00:00:00 ' , '1) 2017-01-01 00:00:00%a2) 2017-01-02 01:00:00 ' ),
358
+ array ('2017-01-01 ' , 'P1DT1H ' , 1 , 0 , ' every + 1d 01:00:00.0 , from 2017-01-01 00:00:00 (included) recurring 2 time/s ' , '1) 2017-01-01 00:00:00%a2) 2017-01-02 01:00:00 ' ),
370
359
371
360
array ('2017-01-01 ' , 'P1D ' , '2017-01-04 ' , \DatePeriod::EXCLUDE_START_DATE , 'every + 1d, from 2017-01-01 00:00:00 (excluded) to 2017-01-04 00:00:00 ' , '1) 2017-01-02%a2) 2017-01-03 ' ),
372
361
array ('2017-01-01 ' , 'P1D ' , 2 , \DatePeriod::EXCLUDE_START_DATE , 'every + 1d, from 2017-01-01 00:00:00 (excluded) recurring 2 time/s ' , '1) 2017-01-02%a2) 2017-01-03 ' ),
0 commit comments