CGI-Alert
view release on metacpan or search on metacpan
t/01basic.t view on Meta::CPAN
warn "this is warning number 1\n";
print $nonexistent_variable;
die "this is where we die\n";
-
close $script_fh;
chmod 0500 => $script_path;
my @expect = <DATA>;
plan tests => 1 + @expect;
{
local %ENV =
(
(map { $_ => $ENV{$_} || 'undef' } qw(HOME PATH LOGNAME USER SHELL)),
t/03http_die.t view on Meta::CPAN
);
# Here we go.
http_die '400 Bad Request', 'this is the body';
-
close $script_fh;
chmod 0500 => $script_path;
my $expect = do { local $/; <DATA>; };
plan tests => 2;
{
local %ENV =
(
(map { $_ => $ENV{$_} || 'undef' } qw(HOME PATH LOGNAME USER SHELL)),
( run in 0.243 second using v1.01-cache-2.11-cpan-496ff517765 )