=begin testing-SETUP
-BEGIN {
- eval 'use DateTime; use DateTime::Calendar::Mayan;';
- if ($@) {
- diag 'DateTime & DateTime::Calendar::Mayan required for this test';
- ok(1);
- exit 0;
- }
-}
+use Test::Requires {
+ 'DateTime' => '0',
+ 'DateTime::Calendar::Mayan' => '0',
+};
=end testing-SETUP
=begin testing-SETUP
-BEGIN {
- eval 'use Regexp::Common; use Locale::US;';
- if ($@) {
- diag 'Regexp::Common & Locale::US required for this test';
- ok(1);
- exit 0;
- }
-}
+use Test::Requires {
+ 'Locale::US' => '0',
+ 'Regexp::Common' => '0',
+};
=end testing-SETUP
=begin testing-SETUP
-BEGIN {
- eval 'use HTTP::Headers; use Params::Coerce; use URI;';
- if ($@) {
- diag 'HTTP::Headers, Params::Coerce & URI required for this test';
- ok(1);
- exit 0;
- }
-}
+use Test::Requires {
+ 'HTTP::Headers' => '0',
+ 'Params::Coerce' => '0',
+ 'URI' => '0',
+};
=end testing-SETUP
=begin testing-SETUP
-BEGIN {
- eval 'use Test::Output;';
- if ($@) {
- diag 'Test::Output is required for this test';
- ok(1);
- exit 0;
- }
-}
+use Test::Requires {
+ 'Test::Output' => '0',
+};
=end testing-SETUP
=begin testing-SETUP
-BEGIN {
- eval 'use Test::Output;';
- if ($@) {
- diag 'Test::Output is required for this test';
- ok(1);
- exit 0;
- }
-}
+use Test::Requires {
+ 'Test::Output' => '0',
+};
=end testing-SETUP