use warnings;
use Test::More;
-BEGIN {
- eval "use Test::Output;";
- plan skip_all => "Test::Output is required for this test" if $@;
- plan tests => 1;
-}
+
+use Test::Requires {
+ 'Test::Output' => '0.01', # skip all if not installed
+};
{
package ModdedNew;
'got a warning that Foo may not have an inlined constructor'
);
}
+
+done_testing;