diff --git a/tests/Output/ImageTest.php b/tests/Output/ImageTest.php index dd5c1002c..6f8b01f7a 100644 --- a/tests/Output/ImageTest.php +++ b/tests/Output/ImageTest.php @@ -66,6 +66,10 @@ class ImageTest extends \PHPUnit_Framework_TestCase{ $this->assertEquals($expected, (new QRCode($data, new QRImage($this->options)))->output()); } + /** + * @expectedException \chillerlan\QRCode\Output\QRCodeOutputException + * @expectedExceptionMessage Invalid matrix! + */ public function testSetMatrixException(){ (new QRImage)->setMatrix([]); } diff --git a/tests/Output/StringTest.php b/tests/Output/StringTest.php index bab65ed51..9c28d5668 100644 --- a/tests/Output/StringTest.php +++ b/tests/Output/StringTest.php @@ -47,6 +47,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 matrix! + */ public function testSetMatrixException(){ (new QRString)->setMatrix([]); }