4 use Test::More tests => 4;
8 my ($before, $after, $around);
15 push @calls, 'Role::foo:before';
17 before foo => $before;
20 push @calls, 'Role::foo:after';
26 push @calls, 'Role::foo:around_before';
28 push @calls, 'Role::foo:around_after';
30 around foo => $around;
35 is_deeply([Role->meta->get_before_method_modifiers('foo')], [$before]);
36 is_deeply([Role->meta->get_after_method_modifiers('foo')], [$after]);
37 is_deeply([Role->meta->get_around_method_modifiers('foo')], [$around]);
45 push @calls, 'Class::foo';
52 is_deeply([splice @calls], [
54 'Role::foo:around_before',
56 'Role::foo:around_after',