:octocat: mute debug output on CI

This commit is contained in:
smiley
2022-07-26 16:38:34 +02:00
parent df29c1c277
commit 1fd3109339
5 changed files with 18 additions and 3 deletions
+6
View File
@@ -17,6 +17,7 @@ use chillerlan\QRCode\Output\{QROutputInterface, QRString};
use PHPUnit\Framework\TestCase;
use PHPUnit\Util\Color;
use Generator;
use function defined;
/**
* Tests the QRMatix class
@@ -41,6 +42,11 @@ final class QRMatrixTest extends TestCase{
* Matrix debugging console output
*/
public static function debugMatrix(QRMatrix $matrix):void{
if(defined('TEST_IS_CI') && TEST_IS_CI === true){
return;
}
$opt = new QROptions;
$opt->outputType = QROutputInterface::STRING_TEXT;
$opt->eol = Color::colorize('reset', "\x00\n");