Skip to content

Commit dc9728d

Browse files
committed
FixStabilityFlagsTest::testLowestWins() to use data provider
Closes #208
1 parent 8a275c4 commit dc9728d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/phpunit/StabilityFlagsTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,23 +59,23 @@ public function provideExplicitStability()
5959
public function testLowestWins($version, $default, $expect)
6060
{
6161
$fixture = new StabilityFlags([
62-
'test' => BasePackage::STABILITY_ALPHA,
62+
'test' => $default,
6363
]);
6464
$got = $fixture->extractAll([
65-
'test' => $this->makeLink('@rc')->reveal(),
65+
'test' => $this->makeLink($version)->reveal(),
6666
]);
67-
$this->assertSame(BasePackage::STABILITY_ALPHA, $got['test']);
67+
$this->assertSame($expect, $got['test']);
6868
}
6969

7070
public function provideLowestWins()
7171
{
7272
return [
73-
'default' => [
73+
[
7474
'1.0@RC',
7575
BasePackage::STABILITY_BETA,
7676
BasePackage::STABILITY_BETA
7777
],
78-
'default' => [
78+
[
7979
'1.0@dev',
8080
BasePackage::STABILITY_BETA,
8181
BasePackage::STABILITY_DEV

0 commit comments

Comments
 (0)