QROptionsTest
extends TestCase
in package
QROptions test
Table of Contents
- testClampRGBValues() : void
- Tests clamping of the RGB values for $imageTransparencyBG
- testInvalidEccLevelException() : void
- Tests if an exception is thrown on an incorrect ECC level
- testInvalidRGBValueException() : void
- Tests if an exception is thrown when a non-numeric RGB value was encoutered
- testMaskPatternClamp() : void
- Tests the $maskPattern clamping
- testVersionClamp() : void
- Tests the $version clamping
- testVersionMinMaxClamp() : void
- Tests the $versionMin/$versionMax clamping
Methods
testClampRGBValues()
Tests clamping of the RGB values for $imageTransparencyBG
public
testClampRGBValues(array<string|int, mixed> $rgb, array<string|int, mixed> $expected) : void
Parameters
- $rgb : array<string|int, mixed>
- $expected : array<string|int, mixed>
Tags
Return values
void —testInvalidEccLevelException()
Tests if an exception is thrown on an incorrect ECC level
public
testInvalidEccLevelException() : void
Return values
void —testInvalidRGBValueException()
Tests if an exception is thrown when a non-numeric RGB value was encoutered
public
testInvalidRGBValueException() : void
Return values
void —testMaskPatternClamp()
Tests the $maskPattern clamping
public
testMaskPatternClamp(int $maskPattern, int $expected) : void
Parameters
- $maskPattern : int
- $expected : int
Tags
Return values
void —testVersionClamp()
Tests the $version clamping
public
testVersionClamp(int $version, int $expected) : void
Parameters
- $version : int
- $expected : int
Tags
Return values
void —testVersionMinMaxClamp()
Tests the $versionMin/$versionMax clamping
public
testVersionMinMaxClamp(int $versionMin, int $versionMax, int $expectedMin, int $expectedMax) : void
Parameters
- $versionMin : int
- $versionMax : int
- $expectedMin : int
- $expectedMax : int