QRStringJSONTest
extends QRStringTestAbstract
in package
FinalYes
Tests the QRString output module
Table of Contents
Properties
- $builddir : string
- $FQN : string
- $matrix : QRMatrix
- $options : QROptions|SettingsContainerInterface
- $outputInterface : QROutputInterface
- $type : string
Methods
- moduleValueProvider() : array<string|int, mixed>
- testInstance() : void
- Validate the instance of the interface
- testRenderToCacheFile() : void
- coverage of the built-in output modules
- testSaveException() : void
- Tests if an exception is thrown when trying to write a cache file to an invalid destination
- testSetModuleValues() : void
- testValidateModuleValues() : void
- setUp() : void
Properties
$builddir
protected
string
$builddir
= __DIR__ . '/../../.build/output_test'
$FQN
protected
string
$FQN
$matrix
protected
QRMatrix
$matrix
$options
protected
QROptions|SettingsContainerInterface
$options
$outputInterface
protected
QROutputInterface
$outputInterface
$type
protected
string
$type
= \chillerlan\QRCode\Output\QROutputInterface::STRING_JSON
Methods
moduleValueProvider()
public
abstract static moduleValueProvider() : array<string|int, mixed>
Return values
array<string|int, mixed>testInstance()
Validate the instance of the interface
public
testInstance() : void
testRenderToCacheFile()
coverage of the built-in output modules
public
testRenderToCacheFile() : void
testSaveException()
Tests if an exception is thrown when trying to write a cache file to an invalid destination
public
testSaveException() : void
testSetModuleValues()
public
testSetModuleValues() : void
testValidateModuleValues()
public
testValidateModuleValues(mixed $value, bool $expected) : void
Parameters
- $value : mixed
- $expected : bool
Tags
setUp()
protected
setUp() : void