mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-09-10 09:46:26 +00:00
🚿 don't cover the extension check exceptions
This commit is contained in:
@@ -37,7 +37,7 @@ class QRImage extends QROutputAbstract{
|
||||
public function __construct(SettingsContainerInterface $options, QRMatrix $matrix){
|
||||
|
||||
if(!extension_loaded('gd')){
|
||||
throw new QRCodeException('ext-gd not loaded');
|
||||
throw new QRCodeException('ext-gd not loaded'); // @codeCoverageIgnore
|
||||
}
|
||||
|
||||
parent::__construct($options, $matrix);
|
||||
|
||||
@@ -35,7 +35,7 @@ class QRImagick extends QROutputAbstract{
|
||||
public function __construct(SettingsContainerInterface $options, QRMatrix $matrix){
|
||||
|
||||
if(!extension_loaded('imagick')){
|
||||
throw new QRCodeException('ext-imagick not loaded');
|
||||
throw new QRCodeException('ext-imagick not loaded'); // @codeCoverageIgnore
|
||||
}
|
||||
|
||||
parent::__construct($options, $matrix);
|
||||
|
||||
Reference in New Issue
Block a user