6 use Test::Requires 'YAML';
12 use Plack::Session::State::Cookie;
13 use Plack::Session::Store::File;
15 use t::lib::TestSession;
17 my $TMP = File::Spec->catdir('t', 'tmp');
22 t::lib::TestSession::run_all_tests(
23 store => Plack::Session::Store::File->new(
25 serializer => sub { YAML::DumpFile( reverse @_ ) }, # YAML takes it's args the opposite of Storable
26 deserializer => sub { YAML::LoadFile( @_ ) },
28 state => Plack::Session::State->new,
30 open my $in, '<', \do { my $d };
32 'psgi.version' => [ 1, 0 ],
34 'psgi.errors' => *STDERR,
35 'psgi.url_scheme' => 'http',
37 REQUEST_METHOD => 'GET',
38 QUERY_STRING => join "&" => map { $_ . "=" . $_[0]->{ $_ } } keys %{$_[0] || +{}},
43 unlink $_ foreach glob( File::Spec->catdir($TMP, '*') );