9 if ( eval { require Catalyst::Plugin::Session::State::Cookie } ) {
12 plan skip_all => "Catalyst::Plugin::Session::State::Cookie required";
20 BEGIN { $INC{"TestPlugin.pm"} = 1 } # nasty hack for 5.8.6
22 sub finalize_session { $finalized = 1 }
24 sub finalize { die "already finalized_session()" if $finalized }
26 # Structure inheritance so TestPlugin->finalize() is called *after*
27 # Catalyst::Plugin::Session->finalize()
31 Session Session::Store::Dummy Session::State::Cookie +TestPlugin
36 BEGIN { use_ok('Catalyst::Plugin::Session') }
39 eval { $c->finalize };
40 ok(!$@, "finalize_session() called after all other finalize() methods");
41 ok($finalized, "finalize_session() called");