protected function setUp()
 {
     parent::setUp();
     if (!class_exists('Gmagick')) {
         $this->markTestSkipped('Gmagick is not installed');
     }
 }
 protected function setUp()
 {
     parent::setUp();
     if (!function_exists('gd_info')) {
         $this->markTestSkipped('Gd not installed');
     }
 }