6 use Test::Requires 'YAML';
11 use Plack::Session::State::Cookie;
12 use Plack::Session::Store::File;
14 use t::lib::TestSessionHash;
16 my $TMP = File::Spec->catdir('t', 'tmp');
21 t::lib::TestSessionHash::run_all_tests(
22 store => Plack::Session::Store::File->new(
24 serializer => sub { YAML::DumpFile( reverse @_ ) }, # YAML takes it's args the opposite of Storable
25 deserializer => sub { YAML::LoadFile( @_ ) },
27 state => Plack::Session::State->new,
29 open my $in, '<', \do { my $d };
31 'psgi.version' => [ 1, 0 ],
33 'psgi.errors' => *STDERR,
34 'psgi.url_scheme' => 'http',
36 REQUEST_METHOD => 'GET',
37 QUERY_STRING => join "&" => map { $_ . "=" . $_[0]->{ $_ } } keys %{$_[0] || +{}},
42 unlink $_ foreach glob( File::Spec->catdir($TMP, '*') );