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