Skip to content

Commit

Permalink
update label test
Browse files Browse the repository at this point in the history
  • Loading branch information
tonydspaniard committed Jan 31, 2020
1 parent f287c8e commit bb76d82
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions tests/unit/QrCodeTest.php
Expand Up @@ -77,11 +77,15 @@ public function testLabel()
//return true; // todo: try to figure out what is going on Travis and why is working locally.
$label = new Label('2amigos.us');

$out = (new QrCode(strtoupper('https://2amigos.us'), ErrorCorrectionLevelInterface::HIGH))
(new QrCode(strtoupper('https://2amigos.us'), ErrorCorrectionLevelInterface::HIGH))
->setLabel($label)
->writeString();

->writeFile(codecept_data_dir('data-label-new.png'));
$out = file_get_contents(codecept_data_dir('data-label-new.png'));
$this->tester->assertEquals(file_get_contents(codecept_data_dir('data-label.png')), $out);

unlink(codecept_data_dir('data-label-new.png'));


}

public function testQrColored()
Expand Down

0 comments on commit bb76d82

Please sign in to comment.