QRGdImageTestAbstract
extends QROutputTestAbstract
in package
AbstractYes
Tests the QRGdImage output module
Table of Contents
Constants
- buildDir = __DIR__ . '/../../.build/output-test/'
Properties
- $matrix : QRMatrix
- $options : SettingsContainerInterface|QROptions
- $outputInterface : QROutputInterface
Methods
- moduleValueProvider() : array<string|int, mixed>
- testBase64MimeType() : void
- testOutputGetResource() : void
- 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
static moduleValueProvider() : array<string|int, mixed>
Return values
array<string|int, mixed>testBase64MimeType()
public
testBase64MimeType() : void
testOutputGetResource()
public
testOutputGetResource() : 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
Tags
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