src/Logging/JUnit/Writer.php
protected function appendDefects(\DOMElement $caseNode, array $defects, string $type)
    {
        foreach ($defects as $defect) {
            $defectNode = $this->document->createElement($type, htmlspecialchars($defect['text'], ENT_XML1) . "\n");
            $defectNode->setAttribute('type', $defect['type']);
            $caseNode->appendChild($defectNode);
        }
    }
protected function appendDefects(\DOMElement $caseNode, array $defects, string $type)
    {
        foreach ($defects as $defect) {
            $defectNode = $this->document->createElement($type, htmlspecialchars($defect['text'], ENT_XML1) . "\n");
            $defectNode->setAttribute('type', $defect['type']);
            $caseNode->appendChild($defectNode);
        }
    }
protected function appendDefects ( \ DOMElement $ caseNode , array $ defects , string $ type ) { foreach ( $ defects as $ defect ) { $ defectNode = $ this -> document -> createElement ( $ type , htmlspecialchars ( $ defect [ 'text' ] , ENT_XML1 ) . "\n" ) ; $ defectNode -> setAttribute ( 'type' , $ defect [ 'type' ] ) ; $ caseNode -> appendChild ( $ defectNode ) ; } }
Append error or failure nodes to the given testcase node.

@param $caseNode
@param $defects
@param $type
Append error or failure nodes to the given testcase node .