ref($obj) eq 'OP' || ref($obj) eq 'Test::MockObject' && $obj->mocks('O +P') [download]
In reply to Re^3: ISA but no farther? by ysth in thread ISA but no farther? by diotalevi