Skip to content

Commit

Permalink
Closes #2527
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Feb 22, 2017
1 parent 60b6172 commit 3a80d46
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions ChangeLog-6.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ All notable changes of the PHPUnit 6.0 release series are documented in this fil
### Fixed

* Fixed [#2478](https://github.com/sebastianbergmann/phpunit/issues/2478): Tests that take too long are not reported as risky test
* Fixed [#2527](https://github.com/sebastianbergmann/phpunit/issues/2527): Output of `--check-version` suggests removed `--self-upgrade`

## [6.0.7] - 2017-02-19

Expand Down
7 changes: 5 additions & 2 deletions src/TextUI/Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -924,8 +924,11 @@ protected function handleVersionCheck()
$isOutdated = version_compare($latestVersion, Version::id(), '>');

if ($isOutdated) {
print "You are not using the latest version of PHPUnit.\n";
print 'Use "phpunit --self-upgrade" to install PHPUnit ' . $latestVersion . "\n";
printf(
"You are not using the latest version of PHPUnit.\n" .
"The latest version is PHPUnit %s.\n",
$latestVersion
);
} else {
print "You are using the latest version of PHPUnit.\n";
}
Expand Down

0 comments on commit 3a80d46

Please sign in to comment.