Explorar el Código

:100: coverage

smiley hace 8 años
padre
commit
4cd0746fda
Se han modificado 1 ficheros con 6 adiciones y 0 borrados
  1. 6 0
      tests/QRCodeTest.php

+ 6 - 0
tests/QRCodeTest.php

@@ -93,4 +93,10 @@ class QRCodeTest extends QRTestAbstract{
 		$this->qrcode->getMatrix('');
 	}
 
+	public function testImageTransparencyBGDefault(){
+		$this->qrcode = $this->reflection->newInstanceArgs([new QROptions(['imageTransparencyBG' => 'foo'])]);
+
+		$this->assertSame([255,255,255], $this->getProperty('options')->getValue($this->qrcode)->imageTransparencyBG);
+	}
+
 }