function SemVerTest::testMinimizeConstraintsWhichAreNotSubsets

@testWith ["^6.1 || ^4.0", "^6.3 || ^7.4", ">=6.3.0.0-dev, <7.0.0.0-dev"]

@covers ::minimizeConstraints

File

core/tests/Drupal/Tests/Composer/Plugin/Unpack/SemVerTest.php, line 36

Class

SemVerTest
@coversDefaultClass \Drupal\Composer\Plugin\RecipeUnpack\SemVer

Namespace

Drupal\Tests\Composer\Plugin\Unpack

Code

public function testMinimizeConstraintsWhichAreNotSubsets(string $constraint_a, string $constraint_b, string $expected) : void {
    $this->assertSame($expected, SemVer::minimizeConstraints(new VersionParser(), $constraint_a, $constraint_b));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.