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');
23 t::lib::TestSession::run_all_tests(
24 store => Plack::Session::Store::File->new(
26 serializer => sub { YAML::DumpFile( reverse @_ ) }, # YAML takes it's args the opposite of Storable
27 deserializer => sub { YAML::LoadFile( @_ ) },
29 state => Plack::Session::State->new,
30 request_creator => sub {
31 open my $in, '<', \do { my $d };
33 'psgi.version' => [ 1, 0 ],
35 'psgi.errors' => *STDERR,
36 'psgi.url_scheme' => 'http',
38 REQUEST_METHOD => 'GET',
40 my $r = Plack::Request->new( $env );
46 unlink $_ foreach glob( File::Spec->catdir($TMP, '*') );