Documentation

QRGdImagePNGTest extends QRGdImageTestAbstract
in package

FinalYes

Tests the QRGdImage output classes

Attributes
#[RequiresPhpExtension]
'gd'

Table of Contents

Constants

_buildDir  = __DIR__ . '/../../.build/'
buildDir  = 'output-test'

Properties

$matrix  : QRMatrix
$options  : SettingsContainerInterface|QROptions
$outputInterface  : QROutputInterface

Methods

base64MimeType()  : void
moduleValueProvider()  : array<string|int, mixed>
outputGetResource()  : void
renderToCacheFile()  : void
coverage of the built-in output modules
saveException()  : void
Tests if an exception is thrown when trying to write a cache file to an invalid destination
setModuleValues()  : void
covers the module values settings
validateModuleValues()  : void
createBuildDir()  : void
attempts to create the build dir
getBuildDir()  : string
returns the full (real) path to the given build path
getBuildFileContent()  : string
returns the contents of the given build file
getBuildFilePath()  : string
returns the full (real) path to the given build file
getBuildPath()  : string
returns the full raw path to the build dir
getOutputInterface()  : QROutputInterface
setUp()  : void
Attempts to create a directory under /.build and instances several required objects

Constants

_buildDir

protected mixed _buildDir = __DIR__ . '/../../.build/'

Properties

Methods

renderToCacheFile()

coverage of the built-in output modules

public renderToCacheFile() : void
Attributes
#[Test]

saveException()

Tests if an exception is thrown when trying to write a cache file to an invalid destination

public saveException() : void
Attributes
#[Test]

setModuleValues()

covers the module values settings

public setModuleValues() : void
Attributes
#[Test]

validateModuleValues()

public validateModuleValues(mixed $value, bool $expected) : void
Parameters
$value : mixed
$expected : bool
Attributes
#[DataProvider]
'moduleValueProvider'
#[Test]

createBuildDir()

attempts to create the build dir

protected createBuildDir(string $subPath) : void
Parameters
$subPath : string
Tags
throws
RuntimeException

getBuildDir()

returns the full (real) path to the given build path

protected getBuildDir([string $subPath = '' ]) : string
Parameters
$subPath : string = ''
Tags
throws
RuntimeException
Return values
string

getBuildFileContent()

returns the contents of the given build file

protected getBuildFileContent(string $fileSubPath) : string
Parameters
$fileSubPath : string
Tags
throws
RuntimeException
Return values
string

getBuildFilePath()

returns the full (real) path to the given build file

protected getBuildFilePath(string $fileSubPath) : string
Parameters
$fileSubPath : string
Tags
throws
RuntimeException
Return values
string

getBuildPath()

returns the full raw path to the build dir

protected getBuildPath(string $subPath) : string
Parameters
$subPath : string
Return values
string

setUp()

Attempts to create a directory under /.build and instances several required objects

protected setUp() : void

        
On this page

Search results