| 1 | use Test::More tests=>1; |
| 2 | use strict; |
| 3 | |
| 4 | # Include the test hierarchy |
| 5 | use lib 't/lib'; |
| 6 | |
| 7 | use TestApp10; |
| 8 | |
| 9 | # Prevent output to STDOUT |
| 10 | $ENV{CGI_APP_RETURN_ONLY} = 1; |
| 11 | |
| 12 | # A runmode of '0' should be allowed |
| 13 | { |
| 14 | my $app = TestApp10->new; |
| 15 | my $output = $app->run(); |
| 16 | like($output, qr/Success!$/, "Runmode 0 works"); |
| 17 | } |
| 18 |