Debian Codegraph @

t/getquery.t

raw symbols SCIP
1 use Test::Morescip-perl cpan CGI-Application 4.61 Test/More/ tests => 3;
2
3 # Include the test hierarchy
4 use libscip-perl cpan CGI-Application 4.61 lib/ 't/lib';
5
6 # Can we even use this module?
7 use_okscip-perl cpan CGI-Application 4.61 main/use_ok().('TestApp7');
8
9 # Prevent output to STDOUT
10 $ENVscip-perl cpan CGI-Application 4.61 main/`%ENV`.{CGI_APP_RETURN_ONLY} = 1;
11
12 # Test basic cgiapp_get_query()
13 {
14 my $ta_obj = TestApp7->newscip-perl cpan CGI-Application 4.61 TestApp7/new().();
15 my $output = $ta_obj->runscip-perl cpan CGI-Application 4.61 TestApp7/run().();
16
17 # Did the run mode work?
18 likescip-perl cpan CGI-Application 4.61 main/like().($output, qr/^Content\-Type\:\ text\/html/);
19 likescip-perl cpan CGI-Application 4.61 main/like().($output, qr/Hello\ World\:\ testcgi\_mode\ OK/);
20 }
21
22
23 ###############
24 #### EOF ####
25 ###############