QRCodeTest
        
        extends TestCase
    
    
            
            in package
            
        
    
    
            
            uses
                            BuildDirTrait                    
    
FinalYes
Tests basic functions of the QRCode class
Table of Contents
Constants
Properties
Methods
- addEciSegment() : void
 - Tests adding and decoding an ECI sequence
 - addEciSegmentInvalidCharsetException() : void
 - initCustomOutputInterfaceNotExistsException() : void
 - tests if an exception is thrown if the given output class does not exist
 - initCustomOutputInterfaceNotImplementsException() : void
 - tests if an exception is thrown if the given output class does not implement QROutputInterface
 - renderToCacheFile() : void
 - Tests if a cache file is properly saved in the given path
 - saveException() : void
 - Tests if an exception is thrown when trying to write a cache file to an invalid destination
 - 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
 - setUp() : void
 - invoke test instances
 
Constants
_buildDir
    protected
        mixed
    _buildDir
    = __DIR__ . '/../../.build/'
    
    
    
    
buildDir
    private
        mixed
    buildDir
    = 'output-test'
    
    
    
    
Properties
$options
        private
            QROptions
    $options
    
    
    
    
    
    
$qrcode
        private
            QRCode
    $qrcode
    
    
    
    
    
    
Methods
addEciSegment()
Tests adding and decoding an ECI sequence
    public
                    addEciSegment() : void
    Attributes
- #[Test]
 
addEciSegmentInvalidCharsetException()
    public
                    addEciSegmentInvalidCharsetException() : void
    Attributes
- #[Test]
 
initCustomOutputInterfaceNotExistsException()
tests if an exception is thrown if the given output class does not exist
    public
                    initCustomOutputInterfaceNotExistsException() : void
    Attributes
- #[Test]
 
initCustomOutputInterfaceNotImplementsException()
tests if an exception is thrown if the given output class does not implement QROutputInterface
    public
                    initCustomOutputInterfaceNotImplementsException() : void
    Attributes
- #[Test]
 
renderToCacheFile()
Tests if a cache file is properly saved in the given path
    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]
 
createBuildDir()
attempts to create the build dir
    protected
                    createBuildDir(string $subPath) : void
    Parameters
- $subPath : string
 
Tags
getBuildDir()
returns the full (real) path to the given build path
    protected
                    getBuildDir([string $subPath = '' ]) : string
    Parameters
- $subPath : string = ''
 
Tags
Return values
stringgetBuildFileContent()
returns the contents of the given build file
    protected
                    getBuildFileContent(string $fileSubPath) : string
    Parameters
- $fileSubPath : string
 
Tags
Return values
stringgetBuildFilePath()
returns the full (real) path to the given build file
    protected
                    getBuildFilePath(string $fileSubPath) : string
    Parameters
- $fileSubPath : string
 
Tags
Return values
stringgetBuildPath()
returns the full raw path to the build dir
    protected
                    getBuildPath(string $subPath) : string
    Parameters
- $subPath : string
 
Return values
stringsetUp()
invoke test instances
    protected
                    setUp() : void