use Test::More;
-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 Foo;
__PACKAGE__->meta->make_immutable;
__PACKAGE__->meta->make_mutable;
+
+ # This actually is testing for a bug in Class::MOP that cause
+ # Moose::Meta::Method::Constructor to spit out a warning when it
+ # shouldn't have done so. The bug was fixed in CMOP 0.75.
::stderr_unlike(
sub { Bar->meta->make_immutable },
qr/Not inlining a constructor/,
);
}
+done_testing;