Annotation of embedaddon/php/ext/calendar/tests/easter_date.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: easter_date()
! 3: --INI--
! 4: date.timezone=UTC
! 5: --SKIPIF--
! 6: <?php include 'skipif.inc'; ?>
! 7: --FILE--
! 8: <?php
! 9: putenv('TZ=UTC');
! 10: echo date("Y-m-d", easter_date(2000))."\n";
! 11: echo date("Y-m-d", easter_date(2001))."\n";
! 12: echo date("Y-m-d", easter_date(2002))."\n";
! 13: echo date("Y-m-d", easter_date(1492))."\n";
! 14: ?>
! 15: --EXPECTF--
! 16: 2000-04-23
! 17: 2001-04-15
! 18: 2002-03-31
! 19:
! 20: Warning: easter_date(): This function is only valid for years between 1970 and 2037 inclusive in %s on line %d
! 21: 1970-01-01
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>