Fix reporting of risky tests
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
parent
14256d631c
commit
b62b82c2de
1 changed files with 3 additions and 1 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue