mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-10-08 12:55:59 +00:00
fixed invalid output type exception
This commit is contained in:
@@ -49,6 +49,10 @@ class StringTest extends \PHPUnit_Framework_TestCase{
|
||||
$this->assertEquals($expected, (new QRCode($data, new QRString($this->options)))->output());
|
||||
}
|
||||
|
||||
/**
|
||||
* @expectedException \chillerlan\QRCode\Output\QRCodeOutputException
|
||||
* @expectedExceptionMessage Invalid string output type!
|
||||
*/
|
||||
public function testOutputTypeException(){
|
||||
$this->options->type = 'foo';
|
||||
new QRString($this->options);
|
||||
|
||||
Reference in New Issue
Block a user