From b62b82c2ded5a27effb7ef2f40f266f12db8e590 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=BCller?= Date: Tue, 6 Dec 2016 13:51:57 +0100 Subject: [PATCH] Fix reporting of risky tests Signed-off-by: Arthur Schiwon --- tests/lib/TestCase.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/lib/TestCase.php b/tests/lib/TestCase.php index f115c11938..afed281791 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();