Skip to content

Commit aa22857

Browse files
committed
test: skip units in testing to avoid deprecation notice
1 parent 741c5c4 commit aa22857

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

tests/EntityTest.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ public function entityDataProvider(): \Generator
3636
'ApiException.php',
3737
'Model.php',
3838
];
39+
$deprecated = [
40+
'Units.php',
41+
];
3942

4043
while ($iterator->valid()) {
4144
/** @var \SplFileInfo $file */
@@ -45,9 +48,13 @@ public function entityDataProvider(): \Generator
4548
$iterator->next();
4649
continue;
4750
}
51+
if (in_array($file->getFilename(), $deprecated, true)) {
52+
$iterator->next();
53+
continue;
54+
}
4855

4956
$className = substr($file->getFilename(), 0, -4);
50-
yield ["{$namespace}\\{$className}"];
57+
yield $className => ["{$namespace}\\{$className}"];
5158
$iterator->next();
5259
}
5360
}

0 commit comments

Comments
 (0)