Просмотр исходного кода

:shower: don't cover the extension check exceptions

codemasher 5 лет назад
Родитель
Сommit
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);