Redid conversion to Test::Fatal
[gitmo/Moose.git] / t / 050_metaclasses / 021_export_with_prototype.t
CommitLineData
badbc528 1use lib "t/lib";
2package MyExporter::User;
3use MyExporter;
4
a28e50e4 5use Test::More;
b10dde3a 6use Test::Fatal;
badbc528 7
b10dde3a 8is( exception {
badbc528 9 with_prototype {
10 my $caller = caller(0);
11 is($caller, 'MyExporter', "With_caller prototype code gets called from MyMooseX");
12 };
b10dde3a 13}, undef, "check function with prototype" );
badbc528 14
b10dde3a 15is( exception {
badbc528 16 as_is_prototype {
17 my $caller = caller(0);
18 is($caller, 'MyExporter', "As-is prototype code gets called from MyMooseX");
19 };
b10dde3a 20}, undef, "check function with prototype" );
a28e50e4 21
22done_testing;