assertSame((new CheckoutHelper())->validate_birth_date($input), $output); } public function datesProvider(): array{ $format = 'Y-m-d'; return [ ['', false], [(new DateTime())->format($format), false], [(new DateTime('-17 years'))->format($format), false], ['1942-02-31', false], ['01-01-1942', false], ['1942-01-01', true], ['0001-01-01', false], ]; } }