Matches the month from a HasDate.
Matcher hasMonth(Object? matcher) => isA<HasDate>().having((d) => d.month, 'month', matcher);