Assert that there are no xml error left
This commit is contained in:
parent
792b270f22
commit
26f416b9f5
|
@ -92,6 +92,12 @@ abstract class TestCase extends \PHPUnit_Framework_TestCase {
|
||||||
throw $hookExceptions[0];
|
throw $hookExceptions[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// fail hard if xml errors have not been cleaned up
|
||||||
|
$errors = libxml_get_errors();
|
||||||
|
libxml_clear_errors();
|
||||||
|
$this->assertEquals([], $errors);
|
||||||
|
|
||||||
|
// tearDown the traits
|
||||||
$traits = $this->getTestTraits();
|
$traits = $this->getTestTraits();
|
||||||
foreach ($traits as $trait) {
|
foreach ($traits as $trait) {
|
||||||
$methodName = 'tearDown' . basename(str_replace('\\', '/', $trait));
|
$methodName = 'tearDown' . basename(str_replace('\\', '/', $trait));
|
||||||
|
|
Loading…
Reference in New Issue