t/check_datetime_version.pl
raw| 1 | use strict; |
| 2 | use warnings; |
| 3 | |
| 4 | use DateTime::TimeZone; |
| 5 | |
| 6 | BEGIN { |
| 7 | my $version = '0.1501'; |
| 8 | |
| 9 | ## no critic (BuiltinFunctions::ProhibitStringyEval) |
| 10 | unless ( "use DateTime $version; 1;" && !$@ ) { |
| 11 | Test::More::plan( skip_all => |
| 12 | "Cannot run tests before DateTime.pm $version is installed." |
| 13 | ); |
| 14 | exit; |
| 15 | } |
| 16 | } |
| 17 | |
| 18 | 1; |