NEXT/next::method thing needed updated for removal of the c3 assumption in next:...
[gitmo/Class-C3.git] / t / 33_next_method_used_with_NEXT.t
index fba980d..c0ed1e1 100644 (file)
@@ -38,6 +38,7 @@ BEGIN {
     package Baz;
     use strict;
     use warnings;    
+    use Class::C3;
     require NEXT; # load this as late as possible so we can catch the test skip
 
     use base 'Bar', 'Fuz';
@@ -45,6 +46,8 @@ BEGIN {
     sub foo { 'Baz::foo => ' . (shift)->NEXT::foo }    
 }
 
+Class::C3::initialize();
+
 is(Foo->foo, 'Foo::foo', '... got the right value from Foo->foo');
 is(Fuz->foo, 'Fuz::foo => Foo::foo', '... got the right value from Fuz->foo');
 is(Bar->foo, 'Bar::foo => Foo::foo', '... got the right value from Bar->foo');