summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2016-12-06 13:51:57 +0100
committerArthur Schiwon <blizzz@arthur-schiwon.de>2016-12-22 18:39:40 +0100
commitb62b82c2ded5a27effb7ef2f40f266f12db8e590 (patch)
treea11d9abb697339f30a6b0363a57901220116a63d
parent14256d631cf32d8774c7fcffe322d65f964fcd5d (diff)
downloadnextcloud-server-b62b82c2ded5a27effb7ef2f40f266f12db8e590.tar.gz
nextcloud-server-b62b82c2ded5a27effb7ef2f40f266f12db8e590.zip
Fix reporting of risky tests
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
-rw-r--r--tests/lib/TestCase.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/lib/TestCase.php b/tests/lib/TestCase.php
index f115c11938a..afed2817910 100644
--- a/tests/lib/TestCase.php
+++ b/tests/lib/TestCase.php
@@ -184,7 +184,9 @@ abstract class TestCase extends TestCasePhpUnitCompatibility {
// fail hard if xml errors have not been cleaned up
$errors = libxml_get_errors();
libxml_clear_errors();
- $this->assertEquals([], $errors);
+ if (!empty($errors)) {
+ self::assertEquals([], $errors, "There have been xml parsing errors");
+ }
\OC\Files\Cache\Storage::getGlobalCache()->clearCache();