1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Fix failing date test

INCLUDE_END_DATE has only been introduced in PHP 8.2.
This commit is contained in:
Ilija Tovilo
2022-10-20 10:48:57 +02:00
parent 011b7f9840
commit 4e8a6554cb

View File

@@ -13,9 +13,6 @@ echo $period->getRecurrences(), " ", $period->recurrences, "\n";
$period = new DatePeriod($start, $interval, $recurrences);
echo $period->getRecurrences(), " ", $period->recurrences, "\n";
$period = new DatePeriod($start, $interval, $recurrences, DatePeriod::INCLUDE_END_DATE);
echo $period->getRecurrences(), " ", $period->recurrences, "\n";
$period = new DatePeriod($start, $interval, $end);
echo $period->getRecurrences(), " ", $period->recurrences, "\n";
@@ -25,6 +22,5 @@ echo $period->getRecurrences(), " ", $period->recurrences, "\n";
--EXPECT--
5 5
5 6
5 7
1
0