Annotation of embedaddon/php/ext/date/tests/bug45682.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Bug #45682 (Unable to var_dump(DateInterval))
! 3: --INI--
! 4: date.timezone=UTC
! 5: --FILE--
! 6: <?php
! 7:
! 8: $date = new DateTime("28-July-2008");
! 9: $other = new DateTime("31-July-2008");
! 10:
! 11: $diff = date_diff($date, $other);
! 12:
! 13: var_dump($diff);
! 14: --EXPECT--
! 15: object(DateInterval)#3 (8) {
! 16: ["y"]=>
! 17: int(0)
! 18: ["m"]=>
! 19: int(0)
! 20: ["d"]=>
! 21: int(3)
! 22: ["h"]=>
! 23: int(0)
! 24: ["i"]=>
! 25: int(0)
! 26: ["s"]=>
! 27: int(0)
! 28: ["invert"]=>
! 29: int(0)
! 30: ["days"]=>
! 31: int(3)
! 32: }
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>