PHP Class Endroid\Tests\QrCode\QrCodeTest

Inheritance: extends PHPUnit_Framework_TestCas\PHPUnit_Framework_TestCase
Show file Open project: endroid/qrcode

Protected Properties

Property Type Description
$qrCode Endroid\QrCode\QrCode

Public Methods

Method Description
testGetDataUri ( ) Tests if a valid data uri is returned.
testGetImageString ( ) Tests if a valid image string is returned.
testGetQrCodeWithLogoString ( ) Tests if a valid image string is returned.
testRenderHttpAddress ( ) For https://github.com/endroid/QrCode/issues/49.

Protected Methods

Method Description
createQrCode ( ) : QrCode Creates a QR code.
createQrCodeWithLogo ( ) : QrCode Creates a QR code with a logo.
getQrCode ( ) Returns a QR code.

Method Details

createQrCode() protected method

Creates a QR code.
protected createQrCode ( ) : QrCode
return Endroid\QrCode\QrCode

getQrCode() protected method

Returns a QR code.
protected getQrCode ( )

testGetDataUri() public method

Tests if a valid data uri is returned.
public testGetDataUri ( )

testGetImageString() public method

Tests if a valid image string is returned.
public testGetImageString ( )

testGetQrCodeWithLogoString() public method

Tests if a valid image string is returned.

testRenderHttpAddress() public method

For https://github.com/endroid/QrCode/issues/49.

Property Details

$qrCode protected property

protected QrCode,Endroid\QrCode $qrCode
return Endroid\QrCode\QrCode