コード例 #1
0
 /**
  * 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());
     }
 }
コード例 #2
0
ファイル: InterfaceTest.php プロジェクト: rorteg/magento2
 /**
  * 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());
     }
 }