AlphaNumTest
extends DatainterfaceTestAbstract
in package
Tests the AlphaNum class
Table of Contents
- $dataInterface : QRData
- $FQN : string
- $reflection : ReflectionClass
- $testdata : string
- maskPatternProvider() : array<string|int, array<string|int, int>>
- testCodeLengthOverflowException() : void
- Tests if an exception is thrown on data overflow
- testGetMinimumVersion() : void
- Tests getting the minimum QR version for the given data
- testGetMinimumVersionException() : void
- Tests if an exception is thrown when the data exceeds the maximum version while auto detecting
- testInitMatrix() : void
- Tests initializing the data matrix
- testInstance() : void
- Verifies the data interface instance
- testInvalidDataException() : void
- Tests if an exception is thrown when an invalid character is encountered
- testInvalidDataOnEmptyException() : void
- Tests if an exception is thrown if the given string is empty
- setUp() : void
Properties
$dataInterface
protected
QRData
$dataInterface
$FQN
protected
string
$FQN
= chillerlanQRCodeDataAlphaNum::class
$reflection
protected
ReflectionClass
$reflection
$testdata
protected
string
$testdata
= '0 $%*+-./:'
Methods
maskPatternProvider()
public
maskPatternProvider() : array<string|int, array<string|int, int>>
Tags
Return values
array<string|int, array<string|int, int>> —testCodeLengthOverflowException()
Tests if an exception is thrown on data overflow
public
testCodeLengthOverflowException() : void
Return values
void —testGetMinimumVersion()
Tests getting the minimum QR version for the given data
public
testGetMinimumVersion() : void
Return values
void —testGetMinimumVersionException()
Tests if an exception is thrown when the data exceeds the maximum version while auto detecting
public
testGetMinimumVersionException() : void
Return values
void —testInitMatrix()
Tests initializing the data matrix
public
testInitMatrix(int $maskPattern) : void
Parameters
- $maskPattern : int
Tags
Return values
void —testInstance()
Verifies the data interface instance
public
testInstance() : void
Return values
void —testInvalidDataException()
Tests if an exception is thrown when an invalid character is encountered
public
testInvalidDataException() : void
Return values
void —testInvalidDataOnEmptyException()
Tests if an exception is thrown if the given string is empty
public
testInvalidDataOnEmptyException() : void
Return values
void —setUp()
protected
setUp() : void