#!/usr/bin/env perl
use strict;
use warnings;
-use Test::More tests => 8;
-use Test::Output;
+use Test::More;
+
+use Test::Requires {
+ 'Test::Output' => '0.01', # skip all if not installed
+};
# this test script ensures that my idiom of:
# role: sub BUILD, after BUILD
use Moose;
::stderr_is {
- with 'TestRole' => { excludes => 'BUILD' };
+ with 'TestRole' => { -excludes => 'BUILD' };
} '';
sub BUILD { push @CALLS, 'ExplicitClassWithBUILD::BUILD' }
}
}
+done_testing;