Log-Mini/t/01_logger_builder.t
Denis Fedoseev ed51b08c16 small fixes
2019-02-21 23:23:53 +03:00

26 lines
No EOL
516 B
Perl

use lib 'lib';
use strict;
use warnings;
use Test::More;
use Test::Fatal;
use Log::Mini;
subtest 'creates stderr logger' => sub {
my $logger = Log::Mini->new('stderr');
isa_ok $logger, 'Log::Mini::LoggerSTDERR';
};
subtest 'creates file logger' => sub {
my $logger = Log::Mini->new('file');
isa_ok $logger, 'Log::Mini::LoggerFILE';
};
subtest 'return STDERR on unknown logger' => sub {
my $logger = Log::Mini->new('unknown');
isa_ok $logger, 'Log::Mini::LoggerSTDERR';
};
done_testing;