6 use Test::More tests => 10;
15 # this tests that repeated role
16 # composition will not cause
17 # a conflict between two methods
18 # which are actually the same anyway
24 sub foo { "RootA::foo" }
31 sub bar { "SubAA::bar" }
37 with "SubAA", "RootA";
38 } '... role was composed as expected';
41 ok( SubAB->does("SubAA"), "does SubAA");
42 ok( SubAB->does("RootA"), "does RootA");
44 isa_ok( my $i = SubAB->new, "SubAB" );
47 is( $i->bar, "SubAA::bar", "... got thr right bar rv" );
53 } '... called foo successfully';
54 is($foo_rv, "RootA::foo", "... got the right foo rv");