Skip to content

Commit b42d02d

Browse files
committed
🚿
1 parent c556d1e commit b42d02d

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

tests/QRCodeReaderTestAbstract.php

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,6 @@ abstract class QRCodeReaderTestAbstract extends TestCase{
4444
protected SettingsContainerInterface|QROptions $options;
4545

4646
protected function setUp():void{
47-
48-
if(!defined('READER_TEST_MAX_VERSION')){
49-
$this::markTestSkipped('READER_TEST_MAX_VERSION not defined (see phpunit.xml.dist)');
50-
}
51-
5247
$this->options = new QROptions;
5348
$this->options->readerUseImagickIfAvailable = false;
5449
}
@@ -135,13 +130,15 @@ public function testReaderMultiMode():void{
135130
}
136131

137132
public static function dataTestProvider():Generator{
133+
134+
if(!defined('READER_TEST_MAX_VERSION')){
135+
self::markTestSkipped('READER_TEST_MAX_VERSION not defined (see phpunit.xml.dist)');
136+
}
137+
138138
$str = str_repeat(self::loremipsum, 5);
139139
$eccLevels = array_map(fn(int $ecc):EccLevel => new EccLevel($ecc), [EccLevel::L, EccLevel::M, EccLevel::Q, EccLevel::H]);
140140

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

0 commit comments

Comments
 (0)