Skip to content

Commit

Permalink
changed/changed-version-endroid auto-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ahumadamatias committed Dec 5, 2024
1 parent a9dd848 commit bd713f6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/QrTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
namespace CryptoQr\Tests;

use CryptoQr\Qr;
use Endroid\QrCode\Logo\Logo;
use PHPUnit\Framework\TestCase;
use Zxing\QrReader;

Expand Down Expand Up @@ -38,6 +39,15 @@ public function testQrUri(): void
$this->assertNotEmpty($pngUri);
}

public function testSetQrLogo(): void
{
$qr = new Qr('34ZwZ4cYiwZnYquM4KW67sqT7vY88215CY');
$qr->setLogo(new Logo(__DIR__ . '/logo.png'));
$pngUri = $qr->getDataUri();

$this->assertNotEmpty($pngUri);
}

public function testWriteQrFile(): void
{
$filename = sys_get_temp_dir() . '/qr-code.png';
Expand Down

0 comments on commit bd713f6

Please sign in to comment.