6 if (eval "require Class::Method::Modifiers; 1") {
10 plan skip_all => "Class::Method::Modifiers required for this test";
16 my ($before, $after, $around);
23 push @calls, 'Role::foo:before';
25 before foo => $before;
28 push @calls, 'Role::foo:after';
34 push @calls, 'Role::foo:around_before';
36 push @calls, 'Role::foo:around_after';
38 around foo => $around;
43 is_deeply([Role->meta->get_before_method_modifiers('foo')], [$before]);
44 is_deeply([Role->meta->get_after_method_modifiers('foo')], [$after]);
45 is_deeply([Role->meta->get_around_method_modifiers('foo')], [$around]);
53 push @calls, 'Class::foo';
60 is_deeply([splice @calls], [
62 'Role::foo:around_before',
64 'Role::foo:around_after',