Skip to content

Commit e119b6d

Browse files
committed
fix some risky tests
1 parent bf0c619 commit e119b6d

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Tests/AbstractLayoutTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ protected function assertMatchesXpath($html, $expression, $count = 1)
8383
// strip away <root> and </root>
8484
substr($dom->saveHTML(), 6, -8)
8585
));
86+
} else {
87+
$this->addToAssertionCount(1);
8688
}
8789
}
8890

Tests/Resources/TranslationFilesTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ public function testTranslationFileIsValid($filePath)
2525
} else {
2626
\PHPUnit\Util\XML::loadfile($filePath, false, false, true);
2727
}
28+
29+
$this->addToAssertionCount(1);
2830
}
2931

3032
public function provideTranslationFiles()

0 commit comments

Comments
 (0)