ImageGmagickTest.php 565 Bytes
Newer Older
Antonio Ramirez committed
1 2 3 4 5 6 7 8 9 10 11 12 13
<?php

namespace yiiunit\extensions\imagine;

use yii\imagine\Image;

/**
 * @group vendor
 * @group imagine
 */
class ImageGmagickTest extends AbstractImageTest
{

14 15 16 17 18 19 20 21 22 23
    protected function setUp()
    {
        if (!class_exists('Gmagick')) {
            $this->markTestSkipped('Skipping ImageGmagickTest, Gmagick is not installed');
        } else {
            Image::setImagine(null);
            Image::$driver = Image::DRIVER_GMAGICK;
            parent::setUp();
        }
    }
Antonio Ramirez committed
24

25 26 27 28
    protected function isFontTestSupported()
    {
        return true;
    }
29
}