6 use Test
::More tests
=> 5;
8 use vars
qw($debug $cgi_debug);
11 $ENV{'KOHA_CGI_DEBUG'}='2';
12 $ENV{'KOHA_DEBUG'}='5';
13 diag "BEFORE use: \$debug is " . (defined $debug ? $debug : 'not defined');
14 diag "BEFORE use: \$cgi_debug is " . (defined $cgi_debug ? $cgi_debug : 'not defined');
18 diag " AFTER use: \$debug is " . (defined $debug ? $debug : 'not defined');
19 diag " AFTER use: \$cgi_debug is " . (defined $cgi_debug ? $cgi_debug : 'not defined');
20 ok(defined $debug, " \$debug defined and imported.");
21 ok(defined $cgi_debug, "\$cgi_debug defined and imported.");
22 is($cgi_debug,2,"cgi_debug gets the ENV{'KOHA_CGI_DEBUG'}");
23 is($debug,5,"debug gets the ENV{'KOHA_DEBUG'}");