You want Test::Without::Module.
In reply to Re: Simulating the absence of a module by brian_d_foy in thread Simulating the absence of a module by Thilosophy