Skip to content

Commit

Permalink
Fix reporting of risky tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DeepDiver1975 committed Dec 6, 2016
1 parent ef8a9f8 commit da66ebf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/lib/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit da66ebf

Please sign in to comment.