Test::More::Hooks - It provides before/after hooks of subtest.
use Test::More; use Test::More::Hooks; subtest "some context" => sub { my $subject; before { $subject = Foo->new; }; after { undef $subject; }; subtest "given some argument" => sub { my $actual = $subject->foo(1,2,3); is $actual, 10; }; };
Test::More::Hooks is ...
Copyright (C) ainame.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
ainame <ainame954@facebook.com>
To install Test::More::Hooks, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::More::Hooks
CPAN shell
perl -MCPAN -e shell install Test::More::Hooks
For more information on module installation, please visit the detailed CPAN module installation guide.