+
+
+
+
+
+
+
+ Test abstract for the several (built-in) output modules,
+should also be used to test custom output modules
+
+
+
+
+
+
+
+
+
+
+ Table of Contents
+
+
+
+
+ -
+ $builddir
+
+ : string
+
+
+
+ -
+ $FQN
+
+ : string
+
+
+
+ -
+ $matrix
+
+ : QRMatrix
+
+
+
+ -
+ $options
+
+ : QROptions
+
+
+
+ -
+ $outputInterface
+
+ : QROutputInterface
+
+
+
+ -
+ $type
+
+ : string
+
+
+
+ -
+ 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
+
+
+
+
+
+
+
+
+
+
+
+
+ $builddir
+
+
+
+
+
+
+
+
+ protected
+ string
+ $builddir
+ = __DIR__ . '/../../.build/output_test'
+
+
+
+
+
+
+
+
+
+
+ $FQN
+
+
+
+
+
+
+
+
+ protected
+ string
+ $FQN
+ = \chillerlan\QRCode\Output\QREps::class
+
+
+
+
+
+
+
+
+
+
+ $matrix
+
+
+
+
+
+
+
+
+ protected
+ QRMatrix
+ $matrix
+
+
+
+
+
+
+
+
+
+
+
+ $options
+
+
+
+
+
+
+
+
+ protected
+ QROptions
+ $options
+
+
+
+
+
+
+
+
+
+ $outputInterface
+
+
+
+
+
+
+
+
+ protected
+ QROutputInterface
+ $outputInterface
+
+
+
+
+
+
+
+
+
+
+
+ $type
+
+
+
+
+
+
+
+
+ protected
+ string
+ $type
+ = \chillerlan\QRCode\Output\QROutputInterface::EPS
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ moduleValueProvider()
+
+
+
+
+
+
+ public
+ static moduleValueProvider() : array<string|int, mixed>
+
+
+
+
+
+
+ Return values
+ array<string|int, mixed>
+ —
+
+
+
+
+
+ testInstance()
+
+
+
+
+ Validate the instance of the interface
+
+
+ public
+ testInstance() : void
+
+
+
+
+
+ Return values
+ void
+ —
+
+
+
+
+
+ testRenderToCacheFile()
+
+
+
+
+ coverage of the built-in output modules
+
+
+ public
+ testRenderToCacheFile() : void
+
+
+
+
+
+ Return values
+ void
+ —
+
+
+
+
+
+ testSaveException()
+
+
+
+
+ Tests if an exception is thrown when trying to write a cache file to an invalid destination
+
+
+ public
+ testSaveException() : void
+
+
+
+
+
+ Return values
+ void
+ —
+
+
+
+
+
+ testSetModuleValues()
+
+
+
+
+ covers the module values settings
+
+
+ public
+ testSetModuleValues() : void
+
+
+
+
+
+
+ -
+ inheritDoc
+
+ -
+
+
+
+
+
+ Return values
+ void
+ —
+
+
+
+
+
+ testValidateModuleValues()
+
+
+
+
+
+
+ public
+ testValidateModuleValues(mixed $value, bool $expected) : void
+
+
+ Parameters
+
+ -
+ $value
+ : mixed
+
+ -
+
+
+ -
+ $expected
+ : bool
+
+ -
+
+
+
+
+
+
+
+ -
+ dataProvider
+
+ -
+
+
+
+
+
+
+ Return values
+ void
+ —
+
+
+
+
+
+ setUp()
+
+
+
+
+ Attempts to create a directory under /.build and instances several required objects
+
+
+ protected
+ setUp() : void
+
+
+
+
+
+ Return values
+ void
+ —
+
+
+
+
+
+
+
+
+
+
+