foreach my $module (keys %state) {
if ( eval "require Catalyst::Plugin::Session::State::$module" and
- not eval { "Catalyst::Plugin::Session::State::$module"->VERSION($state{$module}) } ) {
+ ${"Catalyst::Plugin::Session::State::${module}::VERSION"} < $state{$module} ) {
warn <<WARN;
********** NOTE **********
use strict;
use warnings;
-use Test::More tests => 3;
+use Test::More;
+
+BEGIN {
+ if ( eval { require Catalyst::Plugin::Session::State::Cookie } ) {
+ plan tests => 3;
+ } else {
+ plan skip_all => "Catalyst::Plugin::Session::State::Cookie required";
+ }
+}
my $finalized = 0;