Browse Source

fix: Better OS detection in integration tests (#7547)

Michael Voříšek 1 year ago
parent
commit
238c1507e9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tests/Test/AbstractIntegrationTestCase.php

+ 1 - 1
tests/Test/AbstractIntegrationTestCase.php

@@ -216,7 +216,7 @@ abstract class AbstractIntegrationTestCase extends TestCase
             self::markTestSkipped(sprintf('PHP lower than %d is required for "%s", current "%d".', $phpUpperLimit, $case->getFileName(), \PHP_VERSION_ID));
         }
 
-        if (!\in_array(PHP_OS, $case->getRequirement('os'), true)) {
+        if (!\in_array(PHP_OS_FAMILY, $case->getRequirement('os'), true)) {
             self::markTestSkipped(
                 sprintf(
                     'Unsupported OS (%s) for "%s", allowed are: %s.',