10 use Plack::Session::State::Cookie;
11 use Plack::Session::Store;
13 use t::lib::TestSession;
15 t::lib::TestSession::run_all_tests(
16 store => Plack::Session::Store->new,
17 state => Plack::Session::State::Cookie->new,
18 request_creator => sub {
20 open my $in, '<', \do { my $d };
22 'psgi.version' => [ 1, 0 ],
24 'psgi.errors' => *STDERR,
25 'psgi.url_scheme' => 'http',
27 REQUEST_METHOD => 'GET',
28 HTTP_COOKIE => join "; " => map { $_ . "=" . $cookies->{ $_ } } keys %$cookies,
30 return Plack::Request->new( $env );
32 response_test => sub {
33 my ($response, $session_id, $check_expired) = @_;
45 '... got the right cookies in the response'