PHP Class Contao\CoreBundle\Test\Contao\GdImageTest

Inheritance: extends Contao\CoreBundle\Test\TestCase
Datei anzeigen Open project: contao/core-bundle

Public Methods

Method Description
getImageTypes ( ) : array Provides the image types for the tests.
setUpBeforeClass ( )
tearDownAfterClass ( )
testConvertToPaletteImage ( ) Tests the convertToPaletteImage() method.
testConvertToPaletteImageFromTrueColor ( ) Tests the convertToPaletteImage() method from a true color image.
testCopyTo ( ) Tests the copyTo() method.
testCountColors ( ) Tests the countColors() method.
testFromDimension ( ) Tests the fromDimensions() method.
testFromFile ( string $type ) Tests the fromFile() method.
testFromFileInvalidType ( ) Tests the fromFile() method with an invalid type.
testInstantiation ( ) Tests the object instantiation.
testIsSemitransparent ( ) Tests the isSemitransparent() method.
testSaveToFile ( string $type ) Tests the saveToFile() method.

Protected Methods

Method Description
setUp ( )

Method Details

getImageTypes() public method

Provides the image types for the tests.
public getImageTypes ( ) : array
return array

setUp() protected method

protected setUp ( )

setUpBeforeClass() public static method

public static setUpBeforeClass ( )

tearDownAfterClass() public static method

public static tearDownAfterClass ( )

testConvertToPaletteImage() public method

Tests the convertToPaletteImage() method.

testConvertToPaletteImageFromTrueColor() public method

Tests the convertToPaletteImage() method from a true color image.

testCopyTo() public method

Tests the copyTo() method.
public testCopyTo ( )

testCountColors() public method

Tests the countColors() method.
public testCountColors ( )

testFromDimension() public method

Tests the fromDimensions() method.
public testFromDimension ( )

testFromFile() public method

Tests the fromFile() method.
public testFromFile ( string $type )
$type string

testFromFileInvalidType() public method

Tests the fromFile() method with an invalid type.

testInstantiation() public method

Tests the object instantiation.
public testInstantiation ( )

testIsSemitransparent() public method

Tests the isSemitransparent() method.

testSaveToFile() public method

Tests the saveToFile() method.
public testSaveToFile ( string $type )
$type string