Test::Legacy::More - Test::More wrapper for use with Test::Legacy
use Test::Legacy; use Test::Legacy::More; ...use Test::Legacy and Test::More as normal...
Both Test::Legacy and Test::More export functions called ok(), skip() and plan(). When you use them together you have to tell Test::More not to export those functions.
use Test::Legacy; use Test::More import => [qw(!ok !skip !plan)];
Since the purpose of Test::Legacy is to transition to Test::More it can be a bit annoying to have to write that all the time. Test::Legacy::More simply does that work for you. It loads Test::More and supresses the exporting of any functions which might conflict with Test::Legacy. It otherwise works just like Test::More.
To install Test::Legacy, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::Legacy
CPAN shell
perl -MCPAN -e shell install Test::Legacy
For more information on module installation, please visit the detailed CPAN module installation guide.