Skip to content

Commit

Permalink
Closes #2769
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Sep 1, 2017
1 parent 3bfbdd9 commit 4eba337
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions ChangeLog-5.7.md
Expand Up @@ -2,6 +2,12 @@

All notable changes of the PHPUnit 5.7 release series are documented in this file using the [Keep a CHANGELOG](http://keepachangelog.com/) principles.

## [5.7.22] - 2017-MM-DD

### Fixed

* Fixed [#2769](https://github.com/sebastianbergmann/phpunit/issues/2769): Usage of `setUseErrorHandler()` produces `Undefined variable` error

## [5.7.21] - 2017-06-21

### Added
Expand Down Expand Up @@ -171,6 +177,7 @@ All notable changes of the PHPUnit 5.7 release series are documented in this fil
* The `--tap` and `--log-tap` commandline options have been deprecated
* The `--self-update` and `--self-upgrade` commandline options have been deprecated (PHAR binary only)

[5.7.22]: https://github.com/sebastianbergmann/phpunit/compare/5.7.21...5.7.22
[5.7.21]: https://github.com/sebastianbergmann/phpunit/compare/5.7.20...5.7.21
[5.7.20]: https://github.com/sebastianbergmann/phpunit/compare/5.7.19...5.7.20
[5.7.19]: https://github.com/sebastianbergmann/phpunit/compare/5.7.18...5.7.19
Expand Down
2 changes: 1 addition & 1 deletion src/Framework/TestCase.php
Expand Up @@ -860,7 +860,7 @@ public function run(PHPUnit_Framework_TestResult $result = null)
$result->run($this);
}

if ($this->useErrorHandler !== null) {
if (isset($oldErrorHandlerSetting)) {
$result->convertErrorsToExceptions($oldErrorHandlerSetting);
}

Expand Down

0 comments on commit 4eba337

Please sign in to comment.