aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-12-17 17:15:04 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2015-12-17 17:18:42 +0100
commit26f416b9f53e646434da0308b6ff4254122d4db2 (patch)
tree3925e1bd1cc3b3281b7f497ddcc46a78b2e324f8 /tests/lib
parent792b270f22d3494e7070a89dfebe2c4464a1e748 (diff)
downloadnextcloud-server-26f416b9f53e646434da0308b6ff4254122d4db2.tar.gz
nextcloud-server-26f416b9f53e646434da0308b6ff4254122d4db2.zip
Assert that there are no xml error left
Diffstat (limited to 'tests/lib')
-rw-r--r--tests/lib/testcase.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/lib/testcase.php b/tests/lib/testcase.php
index 5d88fa08a6d..c2a72beffcd 100644
--- a/tests/lib/testcase.php
+++ b/tests/lib/testcase.php
@@ -92,6 +92,12 @@ abstract class TestCase extends \PHPUnit_Framework_TestCase {
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();
foreach ($traits as $trait) {
$methodName = 'tearDown' . basename(str_replace('\\', '/', $trait));