Browse Source

:octocat: skip imagick tests if ext-imagick is not loaded

codemasher 6 years ago
parent
commit
a747488c17
1 changed files with 6 additions and 0 deletions
  1. 6 0
      tests/Output/QRImagickTest.php

+ 6 - 0
tests/Output/QRImagickTest.php

@@ -18,6 +18,12 @@ class QRImagickTest extends QROutputTestAbstract{
 
 	protected $FQCN = QRImagick::class;
 
+	public function setUp():void{
+		if(!extension_loaded('imagick')){
+			$this->markTestSkipped('ext-imagick not loaded');
+		}
+	}
+
 	public function testImageOutput(){
 		$type = QRCode::OUTPUT_IMAGICK;