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