Fix reporting of risky tests

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
Thomas Müller 2016-12-06 13:51:57 +01:00 committed by Arthur Schiwon
parent 14256d631c
commit b62b82c2de
No known key found for this signature in database
GPG key ID: 7424F1874854DF23

View file

@ -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();