---some.t---
use Test::More tests => 2;
use Error ':try';
use_ok('MyModule');
try {
MyModule->foo('badparam');
} catch with MyModule::Exception {
pass;
} otherwise {
fail;
}
####
---some.t---
use Test::More tests => 2;
use Error ':try';
use_ok('MyModule');
try {
MyModule->foo('badparam');
} catch with MyModule::Exception {
pass;
} otherwise {
fail;
}
ok('added this test later in this huge test file');
####
---some.t---
use Test::More tests => 2;
use Error ':try';
use_ok('MyModule');
try {
MyModule->foo('badparam');
fail;
} catch with MyModule::Exception {
pass;
} otherwise {
fail;
}