X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F003_methods.t;h=f1780342a9e0cdfd0ab6b3b9819830f3a83069ba;hb=25a5f083d2d06a7823822e3a0c66baad3377d75b;hp=d21e7be9e0be612215a9a9bc24cec65187bd0577;hpb=96185d43ca72d13737a3830dd68b32df6adba87f;p=gitmo%2FClass-MOP.git diff --git a/t/003_methods.t b/t/003_methods.t index d21e7be..f178034 100644 --- a/t/003_methods.t +++ b/t/003_methods.t @@ -10,7 +10,7 @@ use Scalar::Util qw/reftype/; BEGIN { if ( eval 'use Sub::Name (); 1;' ) { - plan tests => 65; + plan tests => 66; } else { plan skip_all => 'These tests require Sub::Name'; @@ -94,6 +94,7 @@ is($foo_method->package_name, 'Foo', '... got the right package name for the met ok($Foo->has_method('foo'), '... Foo->has_method(foo) (defined with Sub::Name)'); is($Foo->get_method('foo')->body, $foo, '... Foo->get_method(foo) == \&foo'); +is($Foo->get_method('foo')->execute, 'Foo::foo', '... _method_foo->execute returns "Foo::foo"'); is(Foo->foo(), 'Foo::foo', '... Foo->foo() returns "Foo::foo"'); # now check all our other items ...