Esempio n. 1
0
 protected function setUp()
 {
     parent::setUp();
     if (!class_exists('Gmagick')) {
         $this->markTestSkipped('Gmagick is not installed');
     }
 }
Esempio n. 2
0
 public function testRotateWithNoBackgroundColor()
 {
     if (version_compare(PHP_VERSION, '5.5', '>=')) {
         // see https://bugs.php.net/bug.php?id=65148
         $this->markTestSkipped('Disabling test while bug #65148 is open');
     }
     parent::testRotateWithNoBackgroundColor();
 }
Esempio n. 3
0
 protected function tearDown()
 {
     if (class_exists('Imagick')) {
         $prop = new \ReflectionProperty('Imagine\\Imagick\\Image', 'supportsColorspaceConversion');
         $prop->setAccessible(true);
         $prop->setValue(null);
     }
     parent::tearDown();
 }
Esempio n. 4
0
 protected function setUp()
 {
     parent::setUp();
     // disable GC while https://bugs.php.net/bug.php?id=63677 is still open
     // If GC enabled, Gmagick unit tests fail
     gc_disable();
     if (!class_exists('Gmagick')) {
         $this->markTestSkipped('Gmagick is not installed');
     }
 }