Skip to content

Commit cba89ca

Browse files
committed
Added errors attr to testsuites tag for consistency (ref #2088)
1 parent 1336eb7 commit cba89ca

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
@@ -121,7 +121,7 @@ public function generate(
121121

122122
$failures = ($totalErrors + $totalWarnings);
123123
echo '<?xml version="1.0" encoding="UTF-8"?>'.PHP_EOL;
124-
echo '<testsuites name="PHP_CodeSniffer '.Config::VERSION.'" tests="'.$tests.'" failures="'.$failures.'">'.PHP_EOL;
124+
echo '<testsuites name="PHP_CodeSniffer '.Config::VERSION.'" errors="0" tests="'.$tests.'" failures="'.$failures.'">'.PHP_EOL;
125125
echo $cachedData;
126126
echo '</testsuites>'.PHP_EOL;
127127

0 commit comments

Comments
 (0)