added string output type exception test

This commit is contained in:
smiley
2016-02-09 01:27:47 +01:00
parent 50628dcda0
commit 645e571d4f
2 changed files with 16 additions and 10 deletions
+6 -1
View File
@@ -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!