mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-08-28 11:07:25 +00:00
added string output type exception test
This commit is contained in:
@@ -42,11 +42,16 @@ class StringTest extends \PHPUnit_Framework_TestCase{
|
||||
/**
|
||||
* @dataProvider stringDataProvider
|
||||
*/
|
||||
public function testImageOutput($data, $type, $expected){
|
||||
public function testStringOutput($data, $type, $expected){
|
||||
$this->options->type = $type;
|
||||
$this->assertEquals($expected, (new QRCode($data, new QRString($this->options)))->output());
|
||||
}
|
||||
|
||||
public function testOutputTypeException(){
|
||||
$this->options->type = 'foo';
|
||||
new QRString($this->options);
|
||||
}
|
||||
|
||||
/**
|
||||
* @expectedException \chillerlan\QRCode\Output\QRCodeOutputException
|
||||
* @expectedExceptionMessage Invalid matrix!
|
||||
|
||||
Reference in New Issue
Block a user