Skip to content

Commit 6351d70

Browse files
Perform validation after comparison with expectation
1 parent 27daadb commit 6351d70

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/tests/Report/CloverTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ public function testCloverForClassWithAnonymousFunction(): void
6868
*/
6969
private function validateAndAssert(string $expectationFile, string $cloverXml): void
7070
{
71+
$this->assertStringMatchesFormatFile($expectationFile, $cloverXml);
72+
7173
libxml_use_internal_errors(true);
7274

7375
$document = new DOMDocument;
@@ -92,7 +94,5 @@ private function validateAndAssert(string $expectationFile, string $cloverXml):
9294
if (isset($buffer)) {
9395
$this->fail($buffer);
9496
}
95-
96-
$this->assertStringMatchesFormatFile($expectationFile, $cloverXml);
9797
}
9898
}

0 commit comments

Comments
 (0)