Yii2 Bootstrap 3
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
556 B

11 years ago
<?php
namespace yiiunit\extensions\imagine;
use yii\imagine\Image;
/**
* @group vendor
* @group imagine
*/
class ImageGdTest extends AbstractImageTest
{
protected function setUp()
{
if (!function_exists('gd_info')) {
$this->markTestSkipped('Skipping ImageGdTest, Gd not installed');
} else {
Image::setImagine(null);
Image::$driver = Image::DRIVER_GD2;
11 years ago
parent::setUp();
}
}
protected function isFontTestSupported()
{
$infos = gd_info();
return isset($infos['FreeType Support']) ? $infos['FreeType Support'] : false;
}
}