X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=xt%2Fextra%2Finternals%2Fattributes.t;fp=xt%2Fextra%2Finternals%2Fattributes.t;h=0bd2e478a77bde13aedca738054b1c2e6fbad5d4;hb=d01688ccb3f9455ee7caeacc27d8ff106d7cad1c;hp=bed8efd1f418878674c4a6652ef38f7e248632d4;hpb=085dbdd69f2b8c80e32698fc6b7e918addaf7fc9;p=dbsrgits%2FDBIx-Class.git diff --git a/xt/extra/internals/attributes.t b/xt/extra/internals/attributes.t index bed8efd..0bd2e47 100644 --- a/xt/extra/internals/attributes.t +++ b/xt/extra/internals/attributes.t @@ -32,6 +32,9 @@ use DBICTest; my $pkg_gen_history = {}; +{ package UEBERVERSAL; sub ueber {} } +@UNIVERSAL::ISA = "UEBERVERSAL"; + sub grab_pkg_gen ($) { push @{ $pkg_gen_history->{$_[0]} }, [ DBIx::Class::_Util::get_real_pkg_gen($_[0]), @@ -225,11 +228,11 @@ sub add_more_attrs { $cnt++; - eval "sub UNIVERSAL::some_unimethod_$cnt {}; 1" or die $@; + eval "sub UEBERVERSAL::some_unimethod_$cnt {}; 1" or die $@; my $rv = describe_class_methods($class); - delete ${"UNIVERSAL::"}{"some_unimethod_$cnt"}; + delete ${"UEBERVERSAL::"}{"some_unimethod_$cnt"}; $rv }; @@ -292,6 +295,7 @@ sub add_more_attrs { my $gen = Math::BigInt->new(0); $gen += DBIx::Class::_Util::get_real_pkg_gen($_) for ( + 'UEBERVERSAL', 'UNIVERSAL', 'DBICTest::AttrTest', @$expected_AttrTest_ISA, @@ -356,6 +360,13 @@ sub add_more_attrs { via_class => "DBICTest::AttrTest" } ], + ueber => [ + { + attributes => {}, + name => "ueber", + via_class => "UEBERVERSAL", + } + ], can => [ { attributes => {},