Skip to content

Commit

Permalink
Merge pull request #127 from RojerUA/master
Browse files Browse the repository at this point in the history
Fix handling of '&' symbols in JUnit XML
  • Loading branch information
julianseeger committed Dec 23, 2014
2 parents 1d4ff62 + ee173d4 commit 88d30a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ParaTest/Logging/JUnit/Writer.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ protected function appendCase($suiteNode, TestCase $case)
protected function appendDefects($caseNode, $defects, $type)
{
foreach($defects as $defect) {
$defectNode = $this->document->createElement($type, $defect['text'] . "\n");
$defectNode = $this->document->createElement($type, htmlentities($defect['text']) . "\n");
$defectNode->setAttribute('type', $defect['type']);
$caseNode->appendChild($defectNode);
}
Expand Down

0 comments on commit 88d30a3

Please # to comment.