smiley 8 лет назад
Родитель
Сommit
4cd0746fda
1 измененных файлов с 6 добавлено и 0 удалено
  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);
+	}
+
 }