|
@@ -94,6 +94,13 @@ class QRCodeTest extends QRTestAbstract{
|
|
|
$this->qrcode->getMatrix('');
|
|
$this->qrcode->getMatrix('');
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ public function testTrim() {
|
|
|
|
|
+ $m1 = $this->qrcode->getMatrix('hello');
|
|
|
|
|
+ $m2 = $this->qrcode->getMatrix('hello '); // added space
|
|
|
|
|
+
|
|
|
|
|
+ $this->assertNotEquals($m1, $m2);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
public function testImageTransparencyBGDefault(){
|
|
public function testImageTransparencyBGDefault(){
|
|
|
$this->qrcode = $this->reflection->newInstanceArgs([new QROptions(['imageTransparencyBG' => 'foo'])]);
|
|
$this->qrcode = $this->reflection->newInstanceArgs([new QROptions(['imageTransparencyBG' => 'foo'])]);
|
|
|
|
|
|