codemasher 4 лет назад
Родитель
Сommit
eac6f7ddac

+ 0 - 3
tests/Data/QRMatrixTest.php

@@ -209,9 +209,6 @@ final class QRMatrixTest extends TestCase{
 
 		if($version < 7){
 			$this->markTestSkipped('N/A (Version < 7)');
-
-			/** @noinspection PhpUnreachableStatementInspection */
-			return;
 		}
 
 		$matrix = $this->getMatrix($version)->setVersionNumber();

+ 0 - 3
tests/Output/QRFpdfTest.php

@@ -29,9 +29,6 @@ class QRFpdfTest extends QROutputTestAbstract{
 
 		if(!class_exists(FPDF::class)){
 			$this->markTestSkipped('FPDF not available');
-
-			/** @noinspection PhpUnreachableStatementInspection */
-			return;
 		}
 
 		parent::setUp();

+ 0 - 1
tests/Output/QRImageTest.php

@@ -26,7 +26,6 @@ class QRImageTest extends QROutputTestAbstract{
 
 		if(!extension_loaded('gd')){
 			$this->markTestSkipped('ext-gd not loaded');
-			return;
 		}
 
 		parent::setUp();

+ 0 - 3
tests/Output/QRImagickTest.php

@@ -30,9 +30,6 @@ class QRImagickTest extends QROutputTestAbstract{
 
 		if(!extension_loaded('imagick')){
 			$this->markTestSkipped('ext-imagick not loaded');
-
-			/** @noinspection PhpUnreachableStatementInspection */
-			return;
 		}
 
 		parent::setUp();

+ 0 - 3
tests/Output/QROutputTestAbstract.php

@@ -124,9 +124,6 @@ abstract class QROutputTestAbstract extends TestCase{
 			&& in_array($type, [QRCode::OUTPUT_IMAGE_JPG, QRCode::OUTPUT_IMAGICK, QRCode::OUTPUT_MARKUP_SVG])
 		){
 			$this::markTestSkipped('may fail on CI');
-
-			/** @noinspection PhpUnreachableStatementInspection */
-			return;
 		}
 
 		$this->options->outputType = $type;