Skip to content

Commit

Permalink
Merge branch '3.7' of github.com:sebastianbergmann/phpunit into 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Oct 2, 2012
2 parents af63337 + 0396604 commit 8c7598e
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 32 deletions.
3 changes: 2 additions & 1 deletion ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ PHPUnit 3.7.2

* Implemented #656: Always clean up mock objects (and free up memory).
* Added the `addUncoveredFilesFromWhitelist` configuration setting back in.
* Fixed #655: Reverted 'More than two positional arguments provided' check as it turned out to be a BC issue.
* Disable token caching (in PHP_TokenStream, used by PHP_CodeCoverage) by default (to reduce memory footprint).

PHPUnit 3.7.1
Expand Down Expand Up @@ -45,6 +46,6 @@ PHPUnit 3.7.0
* If no tests where executed, for example because of a `--filter`, PHPUnit now prints a "No tests executed" warning instead of "OK (0 tests...)".
* It is possible again to expect the generic `Exception` class.
* Removed `addUncoveredFilesFromWhitelist` configuration setting.
* Removed deprecated `--skeleton-class` and `--skeleton-test` switches. The functionality is now provided by the `phpunit-skel` command of the `PHPUnit_SkeletonGenerator` package.
* Removed deprecated `--skeleton-class` and `--skeleton-test` switches. The functionality is now provided by the `phpunit-skelgen` command of the `PHPUnit_SkeletonGenerator` package.
* Removed deprecated `PHPUnit_Extensions_OutputTestCase` class.

2 changes: 1 addition & 1 deletion PHPUnit/Runner/StandardTestSuiteLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public function load($suiteClassName, $suiteClassFile = '')

throw new PHPUnit_Framework_Exception(
sprintf(
'Class %s could not be found in %s.',
"Class '%s' could not be found in '%s'.",

$suiteClassName,
$suiteClassFile
Expand Down
8 changes: 0 additions & 8 deletions PHPUnit/TextUI/Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -514,14 +514,6 @@ protected function handleArguments(array $argv)
$this->handleCustomTestSuite();

if (!isset($this->arguments['test'])) {
if (count($this->options[1]) > 2) {
$this->showMessage(
'More than two positional arguments provided.',
FALSE
);
$this->showHelp();
exit(PHPUnit_TextUI_TestRunner::FAILURE_EXIT);
}

if (isset($this->options[1][0])) {
$this->arguments['test'] = $this->options[1][0];
Expand Down
2 changes: 1 addition & 1 deletion PHPUnit/TextUI/TestRunner.php
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ public function setPrinter(PHPUnit_TextUI_ResultPrinter $resultPrinter)
protected function runFailed($message)
{
self::printVersionString();
self::write($message);
self::write($message . PHP_EOL);
exit(self::FAILURE_EXIT);
}

Expand Down
6 changes: 3 additions & 3 deletions Tests/TextUI/log-xml.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ PHPUnit %s by Sebastian Bergmann.
...<?xml version="1.0" encoding="UTF-8"?>
<testsuites>
<testsuite name="BankAccountTest" file="%sBankAccountTest.php" fullPackage="PHPUnit" package="PHPUnit" tests="3" assertions="3" failures="0" errors="0" time="%f">
<testcase name="testBalanceIsInitiallyZero" class="BankAccountTest" file="%sBankAccountTest.php" line="73" assertions="1" time="%f"/>
<testcase name="testBalanceCannotBecomeNegative" class="BankAccountTest" file="%sBankAccountTest.php" line="83" assertions="1" time="%f"/>
<testcase name="testBalanceCannotBecomeNegative2" class="BankAccountTest" file="%sBankAccountTest.php" line="103" assertions="1" time="%f"/>
<testcase name="testBalanceIsInitiallyZero" class="BankAccountTest" file="%sBankAccountTest.php" line="72" assertions="1" time="%f"/>
<testcase name="testBalanceCannotBecomeNegative" class="BankAccountTest" file="%sBankAccountTest.php" line="82" assertions="1" time="%f"/>
<testcase name="testBalanceCannotBecomeNegative2" class="BankAccountTest" file="%sBankAccountTest.php" line="102" assertions="1" time="%f"/>
</testsuite>
</testsuites>

Expand Down
18 changes: 0 additions & 18 deletions Tests/TextUI/positional-arguments.phpt

This file was deleted.

0 comments on commit 8c7598e

Please sign in to comment.