Skip to content

Commit

Permalink
Simplfy (ext/libxml is a required dependency of PHPUnit)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed May 20, 2019
1 parent 23d0827 commit f61b1e8
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/Framework/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -916,7 +916,7 @@ public function runBare(): void
$this->unregisterCustomComparators();
$this->cleanupIniSettings();
$this->cleanupLocaleSettings();
$this->cleanupLibXml();
\libxml_clear_errors();

// Perform assertion on output.
if (!isset($e)) {
Expand Down Expand Up @@ -2141,11 +2141,4 @@ private function runInSeparateProcess(): bool
return ($this->runTestInSeparateProcess === true || $this->runClassInSeparateProcess === true) &&
$this->inIsolation !== true && !$this instanceof PhptTestCase;
}

private function cleanupLibXml(): void
{
if (\function_exists('libxml_clear_errors')) {
\libxml_clear_errors();
}
}
}

0 comments on commit f61b1e8

Please sign in to comment.