protected function setUp() { parent::setUp(); if (!class_exists('Gmagick')) { $this->markTestSkipped('Gmagick is not installed'); } }
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(); }
protected function tearDown() { if (class_exists('Imagick')) { $prop = new \ReflectionProperty('Imagine\\Imagick\\Image', 'supportsColorspaceConversion'); $prop->setAccessible(true); $prop->setValue(null); } parent::tearDown(); }
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'); } }