Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 4777a4c5a0
Fetching contributors…

Cannot retrieve contributors at this time

40 lines (31 sloc) 0.891 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 Genemu\Bundle\FormBundle\Gd\Filter\Border;
/**
* @author Olivier Chauvel <olivier@generation-multiple.com>
*/
class BorderTest extends \PHPUnit_Framework_TestCase
{
public function setUp()
{
parent::setUp();
if (!function_exists('gd_info')) {
$this->markTestSkipped('Gd not installed');
}
}
public function testDefault()
{
$filter = new Border('#FFF');
$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.