瀏覽代碼

:shower: don't cover the extension check exceptions

codemasher 5 年之前
父節點
當前提交
0ba4aac3eb
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      src/Output/QRImage.php
  2. 1 1
      src/Output/QRImagick.php

+ 1 - 1
src/Output/QRImage.php

@@ -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);

+ 1 - 1
src/Output/QRImagick.php

@@ -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);