From: Marcus Boerger Date: Sun, 6 Nov 2005 12:27:11 +0000 (+0000) Subject: - MFB Add tests X-Git-Tag: RELEASE_2_0_1~51 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f53de944df9a5377f314855ccfde5c7af12d7e5b;p=php - MFB Add tests --- diff --git a/ext/calendar/tests/cal_days_in_month.phpt b/ext/calendar/tests/cal_days_in_month.phpt new file mode 100644 index 0000000000..9aaf3efdd0 --- /dev/null +++ b/ext/calendar/tests/cal_days_in_month.phpt @@ -0,0 +1,20 @@ +--TEST-- +cal_days_in_month() +--SKIPIF-- + +--FILE-- + +--EXPECT-- +There are 31 days in August 2003 +There are 28 days in February 2003 +There are 29 days in February 2004 +There are 31 days in December 2034 diff --git a/ext/calendar/tests/cal_to_jd.phpt b/ext/calendar/tests/cal_to_jd.phpt new file mode 100644 index 0000000000..fde1e0b455 --- /dev/null +++ b/ext/calendar/tests/cal_to_jd.phpt @@ -0,0 +1,16 @@ +--TEST-- +cal_to_jd() +--SKIPIF-- + +--FILE-- + +--EXPECT-- +1748326 +1748324 +374867 +0 diff --git a/ext/calendar/tests/easter_days.phpt b/ext/calendar/tests/easter_days.phpt new file mode 100644 index 0000000000..04aa7ae11b --- /dev/null +++ b/ext/calendar/tests/easter_days.phpt @@ -0,0 +1,14 @@ +--TEST-- +easter_days() +--SKIPIF-- + +--FILE-- + +--EXPECT-- +14 +32 +2 diff --git a/ext/calendar/tests/frenchtojd.phpt b/ext/calendar/tests/frenchtojd.phpt new file mode 100644 index 0000000000..73addb6b80 --- /dev/null +++ b/ext/calendar/tests/frenchtojd.phpt @@ -0,0 +1,16 @@ +--TEST-- +frenchtojd() +--SKIPIF-- + +--FILE-- + +--EXPECT-- +0 +0 +2375840 +0 diff --git a/ext/calendar/tests/skipif.inc b/ext/calendar/tests/skipif.inc new file mode 100644 index 0000000000..de8e4ae930 --- /dev/null +++ b/ext/calendar/tests/skipif.inc @@ -0,0 +1,4 @@ +