Skip to content

Commit

Permalink
🚿
Browse files Browse the repository at this point in the history
  • Loading branch information
codemasher committed Jul 21, 2024
1 parent c556d1e commit b42d02d
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions tests/QRCodeReaderTestAbstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,6 @@ abstract class QRCodeReaderTestAbstract extends TestCase{
protected SettingsContainerInterface|QROptions $options;

protected function setUp():void{

if(!defined('READER_TEST_MAX_VERSION')){
$this::markTestSkipped('READER_TEST_MAX_VERSION not defined (see phpunit.xml.dist)');
}

$this->options = new QROptions;
$this->options->readerUseImagickIfAvailable = false;
}
Expand Down Expand Up @@ -135,13 +130,15 @@ public function testReaderMultiMode():void{
}

public static function dataTestProvider():Generator{

if(!defined('READER_TEST_MAX_VERSION')){
self::markTestSkipped('READER_TEST_MAX_VERSION not defined (see phpunit.xml.dist)');
}

$str = str_repeat(self::loremipsum, 5);
$eccLevels = array_map(fn(int $ecc):EccLevel => new EccLevel($ecc), [EccLevel::L, EccLevel::M, EccLevel::Q, EccLevel::H]);

/**
* @noinspection PhpUndefinedConstantInspection - see phpunit.xml.dist
* @phpstan-ignore-next-line
*/
/** @noinspection PhpUndefinedConstantInspection - see phpunit.xml.dist */
for($v = 1; $v <= READER_TEST_MAX_VERSION; $v++){
$version = new Version($v);

Expand Down

0 comments on commit b42d02d

Please sign in to comment.