Annotation of embedaddon/php/ext/date/tests/bug53437_var4.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Bug #53437 (Check that var_dump out is the same using the whole object or it's single properties), variation 4
3: --INI--
4: date.timezone = Europe/Berlin
5: --FILE--
6: <?php
7: $dt = new DateTime('2009-10-11');
8:
9: $df = $dt->diff(new DateTime('2009-10-13'));
10:
11: var_dump($df,
12: $df->y,
13: $df->m,
14: $df->d,
15: $df->h,
16: $df->i,
17: $df->s,
18: $df->invert,
19: $df->days);
20:
21: ?>
22: ==DONE==
23: --EXPECTF--
24: object(DateInterval)#%d (15) {
25: ["y"]=>
26: int(0)
27: ["m"]=>
28: int(0)
29: ["d"]=>
30: int(2)
31: ["h"]=>
32: int(0)
33: ["i"]=>
34: int(0)
35: ["s"]=>
36: int(0)
37: ["weekday"]=>
38: int(0)
39: ["weekday_behavior"]=>
40: int(0)
41: ["first_last_day_of"]=>
42: int(0)
43: ["invert"]=>
44: int(0)
45: ["days"]=>
46: int(2)
47: ["special_type"]=>
48: int(0)
49: ["special_amount"]=>
50: int(0)
51: ["have_weekday_relative"]=>
52: int(0)
53: ["have_special_relative"]=>
54: int(0)
55: }
56: int(0)
57: int(0)
58: int(2)
59: int(0)
60: int(0)
61: int(0)
62: int(0)
63: int(2)
64: ==DONE==
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>