9 use HTTP::Request::Common;
12 local $SIG{__WARN__} = sub { $warning = $_[0] };
14 TestApp->setup_engine('PSGI');
15 my $app = sub { TestApp->run(@_) };
17 like $warning, qr/You are running Catalyst\:\:Engine\:\:PSGI/,
18 'got deprecation alert warning';
23 my $TIMEOUT_IN_SECONDS = 5;
24 local $SIG{ALRM} = sub { die "alarm\n" };
25 alarm($TIMEOUT_IN_SECONDS);
27 my $res = $cb->(GET "/");
28 is $res->content, "root index", 'got expected content';
29 like $warning, qr/env as a writer/, 'got deprecation alert warning';
33 } || fail "$@ problem";