4 use warnings FATAL => 'all';
6 use lib __DIR__ . '/lib';
9 eval { require Moose; 1 }
11 : (skip_all => "Moose required for testing types")
15 require MooseLoadTest;
17 my $foobar = Foo::Bar->new;
19 # can't check for type module not being loaded here, because Moose will drag it in
22 $foobar->check_int(42);
24 # now we should have loaded Moose, not Mouse, to do our type checking
26 is $INC{'Mouse/Util/TypeConstraints.pm'}, undef, "didn't load Mouse";
27 like $INC{'Moose/Util/TypeConstraints.pm'}, qr{Moose/Util/TypeConstraints\.pm$}, 'loaded Moose';