xref: /PHP-7.3/ext/calendar/tests/easter_date.phpt (revision bc529b92)
1--TEST--
2easter_date()
3--INI--
4date.timezone=UTC
5--ENV--
6TZ=UTC
7--SKIPIF--
8<?php include 'skipif.inc'; ?>
9--FILE--
10<?php
11putenv('TZ=UTC');
12echo date("Y-m-d", easter_date(2000))."\n";
13echo date("Y-m-d", easter_date(2001))."\n";
14echo date("Y-m-d", easter_date(2002))."\n";
15echo date("Y-m-d", easter_date(1492))."\n";
16?>
17--EXPECTF--
182000-04-23
192001-04-15
202002-03-31
21
22Warning: easter_date(): This function is only valid for years between 1970 and 2037 inclusive in %s on line %d
231970-01-01
24