6 use Test::More tests => 5;
18 sub foo { 'Foo::foo' }
26 sub foo { 'Fuz::foo => ' . (shift)->next::method }
34 sub foo { 'Bar::foo => ' . (shift)->next::method }
41 use base 'Bar', 'Fuz';
43 sub foo { 'Baz::foo => ' . (shift)->NEXT::foo }
46 is(Foo->foo, 'Foo::foo', '... got the right value from Foo->foo');
47 is(Fuz->foo, 'Fuz::foo => Foo::foo', '... got the right value from Fuz->foo');
48 is(Bar->foo, 'Bar::foo => Foo::foo', '... got the right value from Bar->foo');
50 is(Baz->foo, 'Baz::foo => Bar::foo => Fuz::foo => Foo::foo', '... got the right value using NEXT in a subclass of a C3 class');