1--TEST--
2Test date_interval_create_from_date_string() function : null parameter
3--CREDITS--
4Rodrigo Prado de Jesus <royopa [at] gmail [dot] com>
5--FILE--
6<?php
7$i = date_interval_create_from_date_string(null); //returns a empty object
8var_dump($i);
9?>
10--EXPECTF--
11object(DateInterval)#%d (16) {
12  ["y"]=>
13  int(0)
14  ["m"]=>
15  int(0)
16  ["d"]=>
17  int(0)
18  ["h"]=>
19  int(0)
20  ["i"]=>
21  int(0)
22  ["s"]=>
23  int(0)
24  ["f"]=>
25  float(0)
26  ["weekday"]=>
27  int(0)
28  ["weekday_behavior"]=>
29  int(0)
30  ["first_last_day_of"]=>
31  int(0)
32  ["invert"]=>
33  int(0)
34  ["days"]=>
35  int(0)
36  ["special_type"]=>
37  int(0)
38  ["special_amount"]=>
39  int(0)
40  ["have_weekday_relative"]=>
41  int(0)
42  ["have_special_relative"]=>
43  int(0)
44}
45