From 2d9f7761c41564f71d38e88331a5028131e94a28 Mon Sep 17 00:00:00 2001 From: Christian Kolb Date: Sun, 9 Jun 2024 08:28:55 +0200 Subject: [PATCH] Add coverage for date->weekday() --- tests/Date/WeekdayTest.php | 48 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 tests/Date/WeekdayTest.php diff --git a/tests/Date/WeekdayTest.php b/tests/Date/WeekdayTest.php new file mode 100644 index 0000000..55b38e3 --- /dev/null +++ b/tests/Date/WeekdayTest.php @@ -0,0 +1,48 @@ +weekday()); + } + + /** + * @return array + */ + public static function dataProviderForWeekday(): array + { + return [ + 'saturday' => [ + Weekday::SATURDAY, + Date::fromString('2022-10-08'), + ], + 'monday' => [ + Weekday::MONDAY, + Date::fromString('2022-10-10'), + ], + ]; + } +}