1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
package TestLogger;
use Test::More;
sub new {
return(bless {}, $_[0]);
}
sub info {
my ($self, $message) = @_;
cmp_ok($message, 'eq', 'just calling', 'got correct log info');
ok(1, 'info method got called');
}
sub debug {
my ($self, $message) = @_;
cmp_ok($message, 'eq', 'just calling', 'got correct log info');
ok(1, 'debug method got called');
}
sub error {
my ($self, $message) = @_;
cmp_ok($message, 'eq', 'just calling', 'got correct log info');
ok(1, 'error method got called');
}
sub warn {
my ($self, $message) = @_;
cmp_ok($message, 'eq', 'just calling', 'got correct log info');
ok(1, 'warn method got called');
}
1;
|