PHP Class ColorThief\Test\ColorThiefTest

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

Public Methods

Method Description
provide5bitsColorIndex ( )
provide8bitsColorIndex ( )
provideImageColorPalette ( )
provideImageDominantColor ( )
provideNaturalOrderComparison ( )
testDoCutLeftGreaterThanRight ( )
testDoCutLeftLetherThanRight ( )
testDominantColor ( $image, $area, $expectedColor )
testGetColorIndex5bits ( $r, $g, $b, $index )
testGetColorIndex8bits ( $r, $g, $b, $index )
testGetColorsFromIndex8bits ( $r, $g, $b, $index )
testGetHisto ( )
testGetPaletteWithBlankImage ( )
testGetPaletteWithInvalidQuality ( )
testGetPaletteWithTooFewColors ( )
testGetPaletteWithTooManyColors ( )
testNaturalOrder ( $left, $right, $expected )
testPalette ( $image, $area, $expectedPalette )
testPaletteBinaryString ( $image, $area, $expectedPalette )
testRemoteImage ( )
testVboxFromPixels ( )

Method Details

provide5bitsColorIndex() public method

provide8bitsColorIndex() public method

provideImageColorPalette() public method

provideImageDominantColor() public method

provideNaturalOrderComparison() public method

testDoCutLeftGreaterThanRight() public method

testDoCutLeftLetherThanRight() public method

testDominantColor() public method

public testDominantColor ( $image, $area, $expectedColor )

testGetColorIndex5bits() public method

public testGetColorIndex5bits ( $r, $g, $b, $index )

testGetColorIndex8bits() public method

public testGetColorIndex8bits ( $r, $g, $b, $index )

testGetColorsFromIndex8bits() public method

public testGetColorsFromIndex8bits ( $r, $g, $b, $index )

testGetHisto() public method

public testGetHisto ( )

testGetPaletteWithBlankImage() public method

See also: Issue #11

testGetPaletteWithInvalidQuality() public method

testGetPaletteWithTooFewColors() public method

testGetPaletteWithTooManyColors() public method

testNaturalOrder() public method

public testNaturalOrder ( $left, $right, $expected )

testPalette() public method

public testPalette ( $image, $area, $expectedPalette )

testPaletteBinaryString() public method

public testPaletteBinaryString ( $image, $area, $expectedPalette )

testRemoteImage() public method

See also: Issue #13
public testRemoteImage ( )

testVboxFromPixels() public method

public testVboxFromPixels ( )