Skip to content

Commit

Permalink
Allow stripe-mock version identifying as master
Browse files Browse the repository at this point in the history
As in other API libraries testing against stripe-mock, allow `master` as
a catch all version so that we can test the library against the `master`
branch without getting caught by the minimum version check.
  • Loading branch information
brandur committed May 17, 2018
1 parent 5b86ff1 commit 79b6fe6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
exit(1);
}

if (version_compare($version, MOCK_MINIMUM_VERSION) == -1) {
if ($version != "master" && version_compare($version, MOCK_MINIMUM_VERSION) == -1) {
echo "Your version of stripe-mock (" . $version . ") is too old. The minimum " .
"version to run this test suite is " . MOCK_MINIMUM_VERSION . ". " .
"Please see its repository for upgrade instructions.\n";
Expand Down

0 comments on commit 79b6fe6

Please sign in to comment.