6 use Moose::Util qw( add_method_modifier );
18 add_method_modifier('Foo', 'before', [ ['foo', 'bar'], sub { $COUNT++ } ]);
19 }, undef, 'method modifier with an arrayref' );
22 add_method_modifier('Foo', 'before', [ {'foo' => 'bar'}, sub { $COUNT++ } ]);
23 }, undef, 'method modifier with a hashref' );
28 is($COUNT, 2, "checking that the modifiers were installed.");