QRStringJSONTest
extends QROutputTestAbstract
in package
FinalYes
Test abstract for the several (built-in) output modules, should also be used to test custom output modules
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
- covers the module values settings
- testValidateModuleValues() : void
- setUp() : void
- Attempts to create a directory under /.build and instances several required objects
Properties
$builddir
protected
string
$builddir
= __DIR__ . '/../../.build/output_test'
$FQN
protected
string
$FQN
= \chillerlan\QRCode\Output\QRStringJSON::class
$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
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()
covers the module values settings
public
testSetModuleValues() : void
testValidateModuleValues()
public
testValidateModuleValues(mixed $value, bool $expected) : void
Parameters
- $value : mixed
- $expected : bool
Tags
setUp()
Attempts to create a directory under /.build and instances several required objects
protected
setUp() : void