/** * Checks is adapter testable. * Mark test as skipped if not * * @param Varien_Image_Adapter_Abstract $adapter */ protected function _isAdapterAvailable($adapter) { if (substr(PHP_OS, 0, 3) == 'WIN' && $adapter instanceof Varien_Image_Adapter_ImageMagick) { $this->markTestSkipped("ImageMagick is not working correctly on Windows"); } try { $adapter->checkDependencies(); } catch (Exception $e) { $this->markTestSkipped($e->getMessage()); } }
/** * Checks is adapter testable. * Mark test as skipped if not * * @param Varien_Image_Adapter_Abstract $adapter */ protected function _isAdapterAvailable($adapter) { try { $adapter->checkDependencies(); } catch (Exception $e) { $this->markTestSkipped($e->getMessage()); } }