use TestApp;
use Catalyst::Engine::CGI;
-our %template = (
- HTTP_HOST => 'www.foo.com',
- PATH_INFO => '/',
-);
-
# mod_rewrite to app root for non / based app
{
my $r = get_req (
# - Test scheme (secure request on port 80)
sub get_req {
+ my %template = (
+ HTTP_HOST => 'www.foo.com',
+ PATH_INFO => '/',
+ );
+
local %ENV = (%template, @_);
+
my $i = TestApp->new;
$i->engine(Catalyst::Engine::CGI->new);
$i->engine->prepare_path($i);