Skip to content

Instantly share code, notes, and snippets.

@Cside
Created October 6, 2014 03:02
Show Gist options
  • Save Cside/9552f487222dfdc20992 to your computer and use it in GitHub Desktop.
Save Cside/9552f487222dfdc20992 to your computer and use it in GitHub Desktop.
use Test::More;
use Test::Hook::Guard qw(before);
my $guard = before 'Some::method' => sub {
my (@args) = @_;
is_deeply \@args, [qw(foo bar baz)];
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment