Removed trim() from QRCode->getMatrix(). Data sanitization should be done outside.

This commit is contained in:
Bostjan Rihter
2018-03-11 00:19:08 +01:00
parent 868b962347
commit 788fc0780e
2 changed files with 9 additions and 1 deletions
Regular → Executable
+7
View File
@@ -94,6 +94,13 @@ class QRCodeTest extends QRTestAbstract{
$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(){
$this->qrcode = $this->reflection->newInstanceArgs([new QROptions(['imageTransparencyBG' => 'foo'])]);