Skip to content
This repository was archived by the owner on Mar 15, 2020. It is now read-only.

Commit edc8e3b

Browse files
committed
Additional test addition
1 parent 921082a commit edc8e3b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/Humbug/Test/SelfUpdate/VersionParserTest.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,13 @@ public function testShouldSelectMostRecentUnstableVersionFromPartlyPrefixedSelec
113113
$this->assertSame('1.1.0a', $parser->getMostRecentUnstable());
114114
}
115115

116+
public function testShouldSelectMostRecentUnstableFromVaryingNumeralCounts()
117+
{
118+
$versions = ['1.0-dev', '1.0.0-alpha1'];
119+
$parser = new VersionParser($versions);
120+
$this->assertSame('1.0.0-alpha1', $parser->getMostRecentUnstable());
121+
}
122+
116123
// All versions (ignoring stability)
117124

118125
public function testShouldSelectMostRecentIgnoringStabilityExceptDevFromPrefixedSelection()

0 commit comments

Comments
 (0)