QROutputTestAbstract
extends TestCase
in package
AbstractYes
Test abstract for the several (built-in) output modules, should also be used to test custom output modules
Table of Contents
Constants
- buildDir = __DIR__ . '/../../.build/output-test/'
Properties
- $matrix : QRMatrix
- $options : SettingsContainerInterface|QROptions
- $outputInterface : QROutputInterface
Methods
- moduleValueProvider() : array<string|int, mixed>
- 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
- getOutputInterface() : QROutputInterface
- setUp() : void
- Attempts to create a directory under /.build and instances several required objects
Constants
buildDir
protected
mixed
buildDir
= __DIR__ . '/../../.build/output-test/'
Properties
$matrix
protected
QRMatrix
$matrix
$options
protected
SettingsContainerInterface|QROptions
$options
$outputInterface
protected
QROutputInterface
$outputInterface
Methods
moduleValueProvider()
public
abstract static moduleValueProvider() : array<string|int, mixed>
Return values
array<string|int, mixed>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
abstract testSetModuleValues() : void
testValidateModuleValues()
public
testValidateModuleValues(mixed $value, bool $expected) : void
Parameters
- $value : mixed
- $expected : bool
getOutputInterface()
protected
abstract getOutputInterface(SettingsContainerInterface|QROptions $options, QRMatrix $matrix) : QROutputInterface
Parameters
Return values
QROutputInterfacesetUp()
Attempts to create a directory under /.build and instances several required objects
protected
setUp() : void