markTestSkipped( 'The GD extension is not available.' ); } } #[\PHPUnit\Framework\Attributes\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); } #[\PHPUnit\Framework\Attributes\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); } }