Documentation

QROptionsTest extends TestCase
in package

FinalYes

QROptions test

Table of Contents

Methods

circleRadiusProvider()  : array<string|int, array<string|int, float>>
logoSpaceValueProvider()  : array<string|int, array<string|int, int>>
RGBProvider()  : array<string|int, array<string|int, array<string|int, int>>>
testClampCircleRadius()  : void
Tests clamping of the circle radius
testClampLogoSpaceValue()  : void
Tests the clamping (between 0 and 177) of the logo space values
testLogoSpaceStartNullable()  : void
Tests if the optional logo space start values are nullable
testSetEccLevel()  : void
Tests setting the ECC level from string or int
testSetEccLevelFromIntException()  : void
Tests if an exception is thrown when attempting to set an invalid ECC level integer
testSetEccLevelFromStringException()  : void
Tests if an exception is thrown when attempting to set an invalid ECC level string
testVersionClamp()  : void
Tests the $version clamping
testVersionMinMaxClamp()  : void
Tests the $versionMin/$versionMax clamping
VersionMinMaxProvider()  : array<string|int, array<string|int, int>>
VersionProvider()  : array<string|int, array<string|int, int>>

Methods

circleRadiusProvider()

public static circleRadiusProvider() : array<string|int, array<string|int, float>>
Return values
array<string|int, array<string|int, float>>

logoSpaceValueProvider()

public static logoSpaceValueProvider() : array<string|int, array<string|int, int>>
Return values
array<string|int, array<string|int, int>>

RGBProvider()

public static RGBProvider() : array<string|int, array<string|int, array<string|int, int>>>
Return values
array<string|int, array<string|int, array<string|int, int>>>

testClampCircleRadius()

Tests clamping of the circle radius

public testClampCircleRadius(float $value, float $expected) : void
Parameters
$value : float
$expected : float
Attributes
#[DataProvider]
'circleRadiusProvider'

testClampLogoSpaceValue()

Tests the clamping (between 0 and 177) of the logo space values

public testClampLogoSpaceValue(int $value, int $expected) : void
Parameters
$value : int
$expected : int
Attributes
#[DataProvider]
'logoSpaceValueProvider'

testLogoSpaceStartNullable()

Tests if the optional logo space start values are nullable

public testLogoSpaceStartNullable() : void

testSetEccLevel()

Tests setting the ECC level from string or int

public testSetEccLevel() : void

testSetEccLevelFromIntException()

Tests if an exception is thrown when attempting to set an invalid ECC level integer

public testSetEccLevelFromIntException() : void

testSetEccLevelFromStringException()

Tests if an exception is thrown when attempting to set an invalid ECC level string

public testSetEccLevelFromStringException() : void

testVersionClamp()

Tests the $version clamping

public testVersionClamp(int $version, int $expected) : void
Parameters
$version : int
$expected : int
Attributes
#[DataProvider]
'VersionProvider'

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
Attributes
#[DataProvider]
'VersionMinMaxProvider'

VersionMinMaxProvider()

public static VersionMinMaxProvider() : array<string|int, array<string|int, int>>
Return values
array<string|int, array<string|int, int>>

VersionProvider()

public static VersionProvider() : array<string|int, array<string|int, int>>
Return values
array<string|int, array<string|int, int>>

        
On this page

Search results