Please see https://rt.cpan.org/Ticket/Display.html?id=74760 -- although
I have patched Test::Deep to not call UNIVERSAL::isa or ::can as
functions, it still will not coexist with Test::MockObject, because of
this check in UNIVERSAL::isa:
sub object_or_class
{
local $@;
local $recursing = 1;
if ( my $override = eval { $_[0]->can('isa') } )
{
unless ( $override == \&UNIVERSAL::isa )
# ^^^ this check here ^^^ still fails
However, Test::Deep::isa does goto &UNIVERSAL::isa if @_ == 1, so it is
behaving nicely.
Comments? Would you have any objections to modifying this check to also
compare against \&Test::Deep::isa? Do you have any other suggestions
for dealing with this problem?