Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 4777a4c5a0
Fetching contributors…

Cannot retrieve contributors at this time

42 lines (32 sloc) 1.013 kb
<?php
/*
* This file is part of the GenemuFormBundle package.
*
* (c) Olivier Chauvel <olivier@generation-multiple.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Genemu\Bundle\FormBundle\Tests\Gd\Filter;
use Symfony\Component\HttpFoundation\File\File;
use Genemu\Bundle\FormBundle\Gd\Filter\Text;
/**
* @author Olivier Chauvel <olivier@generation-multiple.com>
*/
class TextTest extends \PHPUnit_Framework_TestCase
{
public function setUp()
{
parent::setUp();
if (!function_exists('gd_info')) {
$this->markTestSkipped('Gd not installed');
}
}
public function testDefault()
{
$filter = new Text('Foo', 12, array(new File(__DIR__ . '/../../Fixtures/fonts/akbar.ttf')), array('000'));
$filter->setResource(imagecreatetruecolor(10, 10));
$apply = $filter->apply();
$this->assertTrue(is_resource($apply));
}
}
Jump to Line
Something went wrong with that request. Please try again.