Skip to content

Commit 054f23b

Browse files
committed
Reports/JUnit: improve condition
1 parent 66b2fa9 commit 054f23b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Reports/Junit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public function generate(
115115
$tests = 0;
116116
$matches = [];
117117
preg_match_all('/tests="([0-9]+)"/', $cachedData, $matches);
118-
if (isset($matches[1]) === true) {
118+
if (empty($matches[1]) === false) {
119119
foreach ($matches[1] as $match) {
120120
$tests += $match;
121121
}

0 commit comments

Comments
 (0)