Skip to content

Commit 16e1821

Browse files
committed
Make sure to have phpunit 12 if php is good enough
1 parent b5fc8c7 commit 16e1821

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

bin/checker.t

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,9 @@ for my $line (@wanted_lines) {
251251
SKIP: {
252252
my ($phpunit) = (`phpunit --version` // '') =~ /PHPUnit (\d+\.\d+\.\d+)/;
253253
ok $phpunit, "$image_name: phpunit exists ($phpunit)";
254-
if ($php_version_number >= 8.2) {
254+
if ($php_version_number >= 8.3) {
255+
is substr($phpunit, 0, 2) => 12, "$image_name: phpunit 12 (12.x.x) for php >= 8.3 ($php_version)";
256+
} elsif ($php_version_number >= 8.2) {
255257
is substr($phpunit, 0, 2) => 11, "$image_name: phpunit 11 (11.x.x) for php >= 8.2 ($php_version)";
256258
} elsif ($php_version_number >= 8.1) {
257259
is substr($phpunit, 0, 2) => 10, "$image_name: phpunit 10 (10.x.x) for php >= 8.1 ($php_version)";

0 commit comments

Comments
 (0)