4 use Catalyst::EngineLoader;
8 expected_catalyst_engine_class => 'Catalyst::Engine',
9 ENV => { CATALYST_ENGINE => 'FastCGI' },
12 expected_catalyst_engine_class => 'Catalyst::Engine',
13 ENV => { CATALYST_ENGINE => 'CGI' },
16 expected_catalyst_engine_class => 'Catalyst::Engine',
17 ENV => { CATALYST_ENGINE => 'Apache1' },
21 foreach my $name (keys %$cases) {
22 local %ENV = %{ $cases->{$name}->{ENV} };
23 my $loader = Catalyst::EngineLoader->new(application_name => "TestApp");
24 if (my $expected = $cases->{$name}->{expected_catalyst_engine_class}) {
25 is $loader->catalyst_engine_class, $expected, $name . " catalyst_engine_class";