Documentation

QRMatrixTest extends TestCase
in package

Tests the QRMatix class

Table of Contents

testECC()  : void
Tests if eccLevel() returns the current (given) ECC level
testFlip()  : void
Tests flipping the value of a module
testGetSetCheck()  : void
Tests the set(), get() and check() methods
testInstance()  : void
Validates the QRMatrix instance
testMaskPattern()  : void
Tests if maskPattern() returns the current (or default) mask pattern
testSetAlignmentPattern()  : void
Tests the alignment patterns and verifies their positions - version 1 (no pattern) skipped
testSetDarkModule()  : void
Tests setting the dark module and verifies its position
testSetFinderPattern()  : void
Tests setting the finder patterns and verifies their positions
testSetFormatInfo()  : void
Tests the format patterns and verifies their positions
testSetLogoSpaceInvalidEccException()  : void
testSetLogoSpaceMaxSizeException()  : void
testSetLogoSpaceOrientation()  : void
testSetLogoSpacePosition()  : void
testSetQuietZone()  : void
Tests the quiet zone pattern and verifies its position
testSetQuietZoneException()  : void
Tests if an exception is thrown in an attempt to create it before data was written
testSetSeparators()  : void
Tests the separator patterns and verifies their positions
testSetTimingPattern()  : void
Tests the timing patterns and verifies their positions
testSetVersionNumber()  : void
Tests the version patterns and verifies their positions - version < 7 skipped
testSize()  : void
Tests if size() returns the actual matrix size/count
testVersion()  : void
Tests if version() returns the current (given) version

Methods

testECC()

Tests if eccLevel() returns the current (given) ECC level

public testECC() : void
Return values
void

testFlip()

Tests flipping the value of a module

public testFlip() : void
Return values
void

testGetSetCheck()

Tests the set(), get() and check() methods

public testGetSetCheck() : void
Return values
void

testInstance()

Validates the QRMatrix instance

public testInstance() : void
Return values
void

testMaskPattern()

Tests if maskPattern() returns the current (or default) mask pattern

public testMaskPattern() : void
Return values
void

testSetAlignmentPattern()

Tests the alignment patterns and verifies their positions - version 1 (no pattern) skipped

public testSetAlignmentPattern(int $version) : void
Parameters
$version : int
Tags
dataProvider

versionProvider

Return values
void

testSetDarkModule()

Tests setting the dark module and verifies its position

public testSetDarkModule(int $version) : void
Parameters
$version : int
Tags
dataProvider

versionProvider

Return values
void

testSetFinderPattern()

Tests setting the finder patterns and verifies their positions

public testSetFinderPattern(int $version) : void
Parameters
$version : int
Tags
dataProvider

versionProvider

Return values
void

testSetFormatInfo()

Tests the format patterns and verifies their positions

public testSetFormatInfo(int $version) : void
Parameters
$version : int
Tags
dataProvider

versionProvider

Return values
void

testSetLogoSpaceInvalidEccException()

public testSetLogoSpaceInvalidEccException() : void
Return values
void

testSetLogoSpaceMaxSizeException()

public testSetLogoSpaceMaxSizeException() : void
Return values
void

testSetLogoSpaceOrientation()

public testSetLogoSpaceOrientation() : void
Return values
void

testSetLogoSpacePosition()

public testSetLogoSpacePosition() : void
Return values
void

testSetQuietZone()

Tests the quiet zone pattern and verifies its position

public testSetQuietZone(int $version) : void
Parameters
$version : int
Tags
dataProvider

versionProvider

Return values
void

testSetQuietZoneException()

Tests if an exception is thrown in an attempt to create it before data was written

public testSetQuietZoneException() : void
Return values
void

testSetSeparators()

Tests the separator patterns and verifies their positions

public testSetSeparators(int $version) : void
Parameters
$version : int
Tags
dataProvider

versionProvider

Return values
void

testSetTimingPattern()

Tests the timing patterns and verifies their positions

public testSetTimingPattern(int $version) : void
Parameters
$version : int
Tags
dataProvider

versionProvider

Return values
void

testSetVersionNumber()

Tests the version patterns and verifies their positions - version < 7 skipped

public testSetVersionNumber(int $version) : void
Parameters
$version : int
Tags
dataProvider

versionProvider

Return values
void

testSize()

Tests if size() returns the actual matrix size/count

public testSize() : void
Return values
void

testVersion()

Tests if version() returns the current (given) version

public testVersion() : void
Return values
void

Search results