Loading tests/IsoWeekTest.php +10 −0 Original line number Diff line number Diff line Loading @@ -137,6 +137,16 @@ class IsoWeekTest extends TestCase IsoWeekCalendar::create(2020, 54, 5); } public function testRangeMonthParser(): void { $this->expectException(\UnexpectedValueException::class); $this->expectExceptionMessage( 'Unable to parse the date string: "2024-W54-5". For year 2024, week must be in range 1-52' ); IsoWeekCalendar::parse('2024-W54-5'); } public function testRangeMonthLeap(): void { $date = IsoWeekCalendar::create(2020, 53, 5); Loading Loading
tests/IsoWeekTest.php +10 −0 Original line number Diff line number Diff line Loading @@ -137,6 +137,16 @@ class IsoWeekTest extends TestCase IsoWeekCalendar::create(2020, 54, 5); } public function testRangeMonthParser(): void { $this->expectException(\UnexpectedValueException::class); $this->expectExceptionMessage( 'Unable to parse the date string: "2024-W54-5". For year 2024, week must be in range 1-52' ); IsoWeekCalendar::parse('2024-W54-5'); } public function testRangeMonthLeap(): void { $date = IsoWeekCalendar::create(2020, 53, 5); Loading