function SemVerTest::testMinimizeConstraints
@testWith ["^6.1", "^6.3", "^6.3"] ["*", "^6.3", "^6.3"] ["^6@dev", "^6.3", "^6.3"]
@covers ::minimizeConstraints
File
-
core/
tests/ Drupal/ Tests/ Composer/ Plugin/ Unpack/ SemVerTest.php, line 25
Class
- SemVerTest
- @coversDefaultClass \Drupal\Composer\Plugin\RecipeUnpack\SemVer
Namespace
Drupal\Tests\Composer\Plugin\UnpackCode
public function testMinimizeConstraints(string $constraint_a, string $constraint_b, string $expected) : void {
$version_parser = new VersionParser();
$this->assertSame($expected, SemVer::minimizeConstraints($version_parser, $constraint_a, $constraint_b));
$this->assertSame($expected, SemVer::minimizeConstraints($version_parser, $constraint_b, $constraint_a));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.