If you want to temporary disable Magento's email features (eg if you're unit testing the Checkout pipeline) then try this:
Mage::app()->getStore()->setConfig('system/smtp/disable', true);
More on my experiences using PHPUnit with Magento in the coming weeks.
Mage::app()->getStore()->setConfig('system/smtp/disable', true);
More on my experiences using PHPUnit with Magento in the coming weeks.
Comments