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

Commit

Permalink
Additional test addition
Browse files Browse the repository at this point in the history
  • Loading branch information
padraic committed May 25, 2015
1 parent 921082a commit edc8e3b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/Humbug/Test/SelfUpdate/VersionParserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,13 @@ public function testShouldSelectMostRecentUnstableVersionFromPartlyPrefixedSelec
$this->assertSame('1.1.0a', $parser->getMostRecentUnstable());
}

public function testShouldSelectMostRecentUnstableFromVaryingNumeralCounts()
{
$versions = ['1.0-dev', '1.0.0-alpha1'];
$parser = new VersionParser($versions);
$this->assertSame('1.0.0-alpha1', $parser->getMostRecentUnstable());
}

// All versions (ignoring stability)

public function testShouldSelectMostRecentIgnoringStabilityExceptDevFromPrefixedSelection()
Expand Down

0 comments on commit edc8e3b

Please sign in to comment.