repo.or.cz
/
CGI-Application-Plugin-RunmodeDeclare.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
$ in character class is still special
[CGI-Application-Plugin-RunmodeDeclare.git]
/
t
/
02-subclass.t
blob
a896e44daa0908901f2d663f83d5dba2f38cc5f6
1
2
use strict;
3
use warnings;
4
5
use lib 't/lib';
6
use Test::More tests => 5;
7
8
use_ok 'MyApp2';
9
10
# testing start mode is properly set on sub class
11
for(1..2){
12
my $app2 = MyApp2->new;
13
my $out = $app2->run;
14
like $out, qr/sub/, "matched $_";
15
}
16
17
# same for error mode
18
for(1..2) {
19
my $app2 = MyApp2->new;
20
$app2->mode_param( sub{"arrest"} );
21
my $out = $app2->run;
22
like $out, qr/oops in MyApp2/;
23
}
24