Bläddra i källkod

added setMatrix() exception tests

smiley 10 år sedan
förälder
incheckning
5868ee88b3
2 ändrade filer med 5 tillägg och 2 borttagningar
  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(QRCode::OUTPUT_IMAGE_PNG, $this->options->type);
 		$this->assertEquals(true, $this->options->base64);
 		$this->assertEquals(true, $this->options->base64);
 	}
 	}
-	
+
 	public function testImageInstance(){
 	public function testImageInstance(){
 		$this->assertInstanceOf(QRImage::class, new QRImage);
 		$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());
 		$this->assertEquals($expected, (new QRCode($data, new QRImage($this->options)))->output());
 	}
 	}
 
 
+	public function testSetMatrixException(){
+		(new QRImage)->setMatrix([]);
+	}
+
 }
 }

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 1
tests/Output/StringTest.php


Vissa filer visades inte eftersom för många filer har ändrats