mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-08 17:07:33 +08:00
31 lines
567 B
PHP
31 lines
567 B
PHP
<?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 {
|
|
$this->image = new Image();
|
|
$this->image->setDriver(Image::DRIVER_GD2);
|
|
parent::setUp();
|
|
}
|
|
}
|
|
|
|
protected function isFontTestSupported()
|
|
{
|
|
$infos = gd_info();
|
|
return isset($infos['FreeType Support']) ? $infos['FreeType Support'] : false;
|
|
}
|
|
|
|
} |