function SemVerTest::testMinimizeConstraintsWhichAreNotSubsets

Same name and namespace in other branches
  1. 11.x core/tests/Drupal/Tests/Composer/Plugin/Unpack/SemVerTest.php \Drupal\Tests\Composer\Plugin\Unpack\SemVerTest::testMinimizeConstraintsWhichAreNotSubsets()

Tests minimize constraints which are not subsets.

Attributes

#[TestWith([ "^6.1 || ^4.0", "^6.3 || ^7.4", ">=6.3.0.0-dev, <7.0.0.0-dev", ])]

File

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

Class

SemVerTest
Tests 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.