Browse Source

test: `CiConfigurationTest` - drop not needed condition, logic is checked in upcoming assertion (#8303)

Dariusz Rumiński 3 months ago
parent
commit
4fe0771f27
1 changed files with 1 additions and 5 deletions
  1. 1 5
      tests/AutoReview/CiConfigurationTest.php

+ 1 - 5
tests/AutoReview/CiConfigurationTest.php

@@ -119,10 +119,6 @@ final class CiConfigurationTest extends TestCase
      */
     private static function assertUpcomingPhpVersionIsCoveredByCiJob(string $lastSupportedVersion, array $ciVersions): void
     {
-        if ('8.2' === $lastSupportedVersion) {
-            return; // no further releases available yet
-        }
-
         self::ensureTraversableContainsIdenticalIsAvailable();
 
         self::assertThat($ciVersions, self::logicalOr(
@@ -133,7 +129,7 @@ final class CiConfigurationTest extends TestCase
             new TraversableContainsIdentical(\sprintf('%.1fsnapshot', $lastSupportedVersion + 0.1)),
             // GitHub CI uses just versions, without suffix, e.g. 8.1 for 8.1snapshot as of writing
             new TraversableContainsIdentical(\sprintf('%.1f', $lastSupportedVersion + 0.1)),
-            new TraversableContainsIdentical(\sprintf('%.1f', round($lastSupportedVersion + 1.0)))
+            new TraversableContainsIdentical(\sprintf('%.1f', floor($lastSupportedVersion + 1.0)))
         ));
     }