File: 01_basic.t

package info (click to toggle)
libcgi-application-basic-plugin-bundle-perl 0.5-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 1,348 kB
  • ctags: 285
  • sloc: perl: 4,924; sh: 31; makefile: 9
file content (18 lines) | stat: -rw-r--r-- 401 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use Test::More tests => 3;
BEGIN { use_ok('CGI::Application::Plugin::LogDispatch') };

use lib './t';
use strict;

$ENV{CGI_APP_RETURN_ONLY} = 1;

use TestAppBasic;
my $t1_obj = TestAppBasic->new();
my $t1_output = $t1_obj->run();

my $logoutput = ${$t1_obj->{__LOG_MESSAGES}->{HANDLE}};

unlike($logoutput, qr/log debug/, 'no debug message');
like($logoutput, qr/log info/, 'logged info message');