From 77accad0f6142c18a8f58937a0b760ac849713df 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 --- 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 b0c75cc82d0b..7b841305e7e5 100644 --- a/tests/lib/TestCase.php +++ b/tests/lib/TestCase.php @@ -145,7 +145,9 @@ protected function tearDown() { // 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"); + } // tearDown the traits $traits = $this->getTestTraits();