Преглед изворни кода

: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){
 	public function __construct(SettingsContainerInterface $options, QRMatrix $matrix){
 
 
 		if(!extension_loaded('gd')){
 		if(!extension_loaded('gd')){
-			throw new QRCodeException('ext-gd not loaded');
+			throw new QRCodeException('ext-gd not loaded'); // @codeCoverageIgnore
 		}
 		}
 
 
 		parent::__construct($options, $matrix);
 		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){
 	public function __construct(SettingsContainerInterface $options, QRMatrix $matrix){
 
 
 		if(!extension_loaded('imagick')){
 		if(!extension_loaded('imagick')){
-			throw new QRCodeException('ext-imagick not loaded');
+			throw new QRCodeException('ext-imagick not loaded'); // @codeCoverageIgnore
 		}
 		}
 
 
 		parent::__construct($options, $matrix);
 		parent::__construct($options, $matrix);