Documentation

QRCodeTest extends TestCase
in package

FinalYes

Tests basic functions of the QRCode class

Table of Contents

Constants

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

Properties

$options  : QROptions
$qrcode  : QRCode

Methods

testInitCustomOutputInterfaceNotExistsException()  : void
tests if an exception is thrown if the given output class does not exist
testInitCustomOutputInterfaceNotImplementsException()  : void
tests if an exception is thrown if the given output class does not implement QROutputInterface
testRenderToCacheFile()  : void
Tests if a cache file is properly saved in the given path
testSaveException()  : void
Tests if an exception is thrown when trying to write a cache file to an invalid destination
setUp()  : void
invoke test instances

Constants

buildDir

private mixed buildDir = __DIR__ . '/../.build/output-test/'

Properties

Methods

testInitCustomOutputInterfaceNotExistsException()

tests if an exception is thrown if the given output class does not exist

public testInitCustomOutputInterfaceNotExistsException() : void

testInitCustomOutputInterfaceNotImplementsException()

tests if an exception is thrown if the given output class does not implement QROutputInterface

public testInitCustomOutputInterfaceNotImplementsException() : void

testRenderToCacheFile()

Tests if a cache file is properly saved in the given path

public testRenderToCacheFile() : void

testSaveException()

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

public testSaveException() : void

setUp()

invoke test instances

protected setUp() : void

        
On this page

Search results