TB2::NoWarnings - Test there are no warnings using TB2.
use TB2::NoWarnings; use Test::Simple tests => 2; ok(1); ok(2); warn "Blah"; # failure
This demonstrates how to write a test library which catches
It must be run before the plan is set. It should throw an error if the plan is already set, but it doesn't.
To install Test::Simple, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::Simple
CPAN shell
perl -MCPAN -e shell install Test::Simple
For more information on module installation, please visit the detailed CPAN module installation guide.