Apply patch to NEXT => MRO::Compat from the mailing list.
[catagits/Catalyst-Plugin-Scheduler.git] / t / lib / Catalyst / Plugin / PluginTest.pm
index 91903fb..505797f 100644 (file)
@@ -2,11 +2,13 @@ package Catalyst::Plugin::PluginTest;
 
 use strict;
 use warnings;
-use NEXT;
+
+use MRO::Compat;
+Class::C3::initialize();
 
 sub setup {
     my $c = shift;
-    $c->NEXT::setup(@_);
+    $c->maybe::next::method(@_);
     
     if ( $c->can('schedule') ) {
         $c->schedule(