Ver Fonte

added setMatrix() exception tests

smiley há 10 anos atrás
pai
commit
5868ee88b3
2 ficheiros alterados com 5 adições e 2 exclusões
  1. 5 1
      tests/Output/ImageTest.php
  2. 0 1
      tests/Output/StringTest.php

+ 5 - 1
tests/Output/ImageTest.php

@@ -37,7 +37,7 @@ class ImageTest extends \PHPUnit_Framework_TestCase{
 		$this->assertEquals(QRCode::OUTPUT_IMAGE_PNG, $this->options->type);
 		$this->assertEquals(true, $this->options->base64);
 	}
-	
+
 	public function testImageInstance(){
 		$this->assertInstanceOf(QRImage::class, new QRImage);
 	}
@@ -66,4 +66,8 @@ class ImageTest extends \PHPUnit_Framework_TestCase{
 		$this->assertEquals($expected, (new QRCode($data, new QRImage($this->options)))->output());
 	}
 
+	public function testSetMatrixException(){
+		(new QRImage)->setMatrix([]);
+	}
+
 }

Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 1
tests/Output/StringTest.php


Alguns ficheiros não foram mostrados porque muitos ficheiros mudaram neste diff