diff --git a/tests/Weekday/IsEqualToTest.php b/tests/Weekday/IsEqualToTest.php new file mode 100644 index 0000000..e4ac2c4 --- /dev/null +++ b/tests/Weekday/IsEqualToTest.php @@ -0,0 +1,56 @@ +isEqualTo($comparator)); + } + + /** + * @return array + */ + public static function dataProvider(): array + { + return [ + '1 day before' => [ + false, + Weekday::MONDAY, + Weekday::TUESDAY, + ], + 'same day' => [ + true, + Weekday::TUESDAY, + Weekday::TUESDAY, + ], + '1 day later' => [ + false, + Weekday::TUESDAY, + Weekday::MONDAY, + ], + ]; + } +}