11 plan skip_all => "This test requires YAML" if $@;
16 use Plack::Session::State::Cookie;
17 use Plack::Session::Store::File;
19 use t::lib::TestSession;
21 my $TMP = File::Spec->catdir('t', 'tmp');
26 t::lib::TestSession::run_all_tests(
27 store => Plack::Session::Store::File->new(
29 serializer => sub { YAML::DumpFile( reverse @_ ) }, # YAML takes it's args the opposite of Storable
30 deserializer => sub { YAML::LoadFile( @_ ) },
32 state => Plack::Session::State->new,
33 request_creator => sub {
34 open my $in, '<', \do { my $d };
36 'psgi.version' => [ 1, 0 ],
38 'psgi.errors' => *STDERR,
39 'psgi.url_scheme' => 'http',
41 REQUEST_METHOD => 'GET',
43 my $r = Plack::Request->new( $env );
49 unlink $_ foreach glob( File::Spec->catdir($TMP, '*') );