markTestSkipped( 'The GD extension is not available.' ); } } /** * @covers phpOMS\Utils\Barcode\QR * @group framework */ public function testImagePng() : void { $path = __DIR__ . '/qr.png'; if (\is_file($path)) { \unlink($path); } $img = new QR('https://jingga.app', 200, 200); $img->saveToPngFile($path); self::assertFileExists($path); } /** * @covers phpOMS\Utils\Barcode\QR * @group framework */ public function testImageJpg() : void { $path = __DIR__ . '/qr.jpg'; if (\is_file($path)) { \unlink($path); } $img = new QR('https://jingga.app', 200, 200); $img->saveToJpgFile($path); self::assertFileExists($path); } }