PHP Class ColorThief\Image\Test\ImageLoaderTest

Inheritance: extends PHPUnit_Framework_TestCase
Show file Open project: ksubileau/color-thief-php

Protected Properties

Property Type Description
$loader

Public Methods

Method Description
setUp ( )
testGetAdapter ( )
testLoadBinaryStringWithGD ( )
testLoadBinaryStringWithGmagick ( )
testLoadBinaryStringWithImagick ( )
testLoadFileMissing ( )
testLoadFileWithGD ( )
testLoadFileWithGmagick ( )
testLoadFileWithImagick ( )
testLoadGDResource ( )
testLoadImagickResource ( )
testLoadInvalidResource ( )
testLoadUrlWithGD ( )
testLoadUrlWithGmagick ( )
testLoadUrlWithImagick ( )

Protected Methods

Method Description
baseTestLoadBinaryString ( $adapterName, $isImagickLoaded, $isGmagickLoaded, $data = false )
baseTestLoadFile ( $adapterName, $isImagickLoaded, $isGmagickLoaded, $path = false )
getAdapterMock ( $adapterName, $method, $image )
getImageLoaderPartialMock ( $adapter, $adapterName, $mockIsImagickLoaded = false, $isImagickLoaded = false, $mockIsGmagickLoaded = false, $isGmagickLoaded = false )

Method Details

baseTestLoadBinaryString() protected method

protected baseTestLoadBinaryString ( $adapterName, $isImagickLoaded, $isGmagickLoaded, $data = false )

baseTestLoadFile() protected method

protected baseTestLoadFile ( $adapterName, $isImagickLoaded, $isGmagickLoaded, $path = false )

getAdapterMock() protected method

protected getAdapterMock ( $adapterName, $method, $image )

getImageLoaderPartialMock() protected method

protected getImageLoaderPartialMock ( $adapter, $adapterName, $mockIsImagickLoaded = false, $isImagickLoaded = false, $mockIsGmagickLoaded = false, $isGmagickLoaded = false )

setUp() public method

public setUp ( )

testGetAdapter() public method

public testGetAdapter ( )

testLoadBinaryStringWithGD() public method

testLoadBinaryStringWithGmagick() public method

testLoadBinaryStringWithImagick() public method

testLoadFileMissing() public method

public testLoadFileMissing ( )

testLoadFileWithGD() public method

public testLoadFileWithGD ( )

testLoadFileWithGmagick() public method

testLoadFileWithImagick() public method

testLoadGDResource() public method

public testLoadGDResource ( )

testLoadImagickResource() public method

testLoadInvalidResource() public method

testLoadUrlWithGD() public method

public testLoadUrlWithGD ( )

testLoadUrlWithGmagick() public method

testLoadUrlWithImagick() public method

Property Details

$loader protected property

protected $loader