Skip to content
Permalink
Browse files

Merge branch '8.1'

  • Loading branch information...
sebastianbergmann committed May 20, 2019
2 parents 179c479 + bb0aa25 commit 51a0ed4cf4a6db7be6a99c506d5a7e5d77f67fbb
Showing with 16 additions and 0 deletions.
  1. +4 −0 ChangeLog-7.5.md
  2. +4 −0 ChangeLog-8.1.md
  3. +8 −0 src/Framework/TestCase.php
@@ -4,6 +4,10 @@ All notable changes of the PHPUnit 7.5 release series are documented in this fil

## [7.5.12] - 2019-MM-DD

### Changed

* After each test, `libxml_clear_errors()` is now called (when available) to clear the libxml error buffer

### Fixed

* Fixed [#3694](https://github.com/sebastianbergmann/phpunit/pull/3694): Constructor arguments for `Throwable` and `Exception` are ignored
@@ -4,6 +4,10 @@ All notable changes of the PHPUnit 8.1 release series are documented in this fil

## [8.1.6] - 2019-MM-DD

### Changed

* After each test, `libxml_clear_errors()` is now called (when available) to clear the libxml error buffer

### Fixed

* Fixed [#3694](https://github.com/sebastianbergmann/phpunit/pull/3694): Constructor arguments for `Throwable` and `Exception` are ignored
@@ -939,6 +939,7 @@ public function runBare(): void
$this->unregisterCustomComparators();
$this->cleanupIniSettings();
$this->cleanupLocaleSettings();
$this->cleanupLibXml();
// Perform assertion on output.
if (!isset($e)) {
@@ -2318,4 +2319,11 @@ private function isCallableTestMethod(string $dependency): bool
return TestUtil::isTestMethod($method);
}
private function cleanupLibXml(): void
{
if (\function_exists('libxml_clear_errors')) {
\libxml_clear_errors();
}
}
}

0 comments on commit 51a0ed4

Please sign in to comment.
You can’t perform that action at this time.