Debian Codegraph @

t/enhancement31.t

raw symbols SCIP
1 use Test::Morescip-perl cpan CGI-Application 4.61 Test/More/ tests=>2;
2
3 # Include the test hierarchy
4 use libscip-perl cpan CGI-Application 4.61 lib/ 't/lib';
5
6 use CGIscip-perl cpan CGI-Application 4.61 CGI/;
7 use TestCGIscip-perl cpan CGI-Application 4.61 TestCGI/;
8 use TestApp9scip-perl cpan CGI-Application 4.61 TestApp9/;
9
10 # Prevent output to STDOUT
11 $ENVscip-perl cpan CGI-Application 4.61 main/`%ENV`.{CGI_APP_RETURN_ONLY} = 1;
12
13 # Query object may be initialized via new()
14 # to a non-CGI.pm object type
15 {
16 my $cgi_obj = TestCGI->newscip-perl cpan CGI-Application 4.61 TestCGI/new().();
17 my $testapp = TestApp9->newscip-perl cpan CGI-Application 4.61 TestApp9/new().(QUERY=>$cgi_obj);
18 my $query_back = $testapp->queryscip-perl cpan CGI-Application 4.61 TestApp9/query().();
19 isa_okscip-perl cpan CGI-Application 4.61 main/isa_ok().($query_back, "TestCGI");
20 }
21
22
23 # $CGIApp->header_type('none') returns only content.
24 {
25 my $q = CGI->newscip-perl cpan CGI-Application 4.61 CGI/new().({rm=>"noheader"});
26 my $app = TestApp9->newscip-perl cpan CGI-Application 4.61 TestApp9/new().(QUERY=>$q);
27 my $output = $app->runscip-perl cpan CGI-Application 4.61 TestApp9/run().();
28 unlikescip-perl cpan CGI-Application 4.61 main/unlike().($output, qr/^Content\-Type\:\ text\/html/, "Headers 'none'");
29 }