test_requires 'Test::More' => '0.94';
test_requires 'Test::Exception';
test_requires 'Test::NoWarnings';
+test_requires 'Test::Requires';
requires 'Moose';
requires 'namespace::autoclean';
use strict;
use warnings;
-use Test::More;
+use Test::More tests => 3;
-BEGIN {
- if (eval { require MooseX::Method::Signatures }) {
- plan tests => 3;
- } else {
- plan skip_all => 'This test needs MooseX::Method::Signatures';
- }
-}
+use Test::Requires {
+ 'MooseX::Method::Signatures' => 0.01,
+};
use Test::Exception;
use Test::NoWarnings;
use Test::More;
use Test::Exception;
-unless (eval { require MooseX::Role::Parameterized }) {
- plan skip_all => 'This test needs MooseX::Role::Parameterized';
-}
+use Test::Requires {
+ 'MooseX::Role::Parameterized' => 0.01,
+};
eval <<'EOF';
package Role;