src/Reporter/Coverage/Exporter/Clover.php
protected static function _exportFile($xmlDocument, $file, $data)
    {
        $xmlFile = $xmlDocument->createElement('file');
        $xmlFile->setAttribute('name', $file);
        foreach ($data as $line => $node) {
            $xmlLine = $xmlDocument->createElement('line');
            $xmlLine->setAttribute('num', $line + 1);
            $xmlLine->setAttribute('type', 'stmt');
            $xmlLine->setAttribute('count', $data[$line]);
            $xmlFile->appendChild($xmlLine);
        }
        return $xmlFile;
    }
protected static function _exportFile($xmlDocument, $file, $data)
    {
        $xmlFile = $xmlDocument->createElement('file');
        $xmlFile->setAttribute('name', $file);
        foreach ($data as $line => $node) {
            $xmlLine = $xmlDocument->createElement('line');
            $xmlLine->setAttribute('num', $line + 1);
            $xmlLine->setAttribute('type', 'stmt');
            $xmlLine->setAttribute('count', $data[$line]);
            $xmlFile->appendChild($xmlLine);
        }
        return $xmlFile;
    }
protected static function _exportFile ( $ xmlDocument , $ file , $ data ) { $ xmlFile = $ xmlDocument -> createElement ( 'file' ) ; $ xmlFile -> setAttribute ( 'name' , $ file ) ; foreach ( $ data as $ line => $ node ) { $ xmlLine = $ xmlDocument -> createElement ( 'line' ) ; $ xmlLine -> setAttribute ( 'num' , $ line + 1 ) ; $ xmlLine -> setAttribute ( 'type' , 'stmt' ) ; $ xmlLine -> setAttribute ( 'count' , $ data [ $ line ] ) ; $ xmlFile -> appendChild ( $ xmlLine ) ; } return $ xmlFile ; }
Export the coverage of a file.

@return object The XML file node.
Export the coverage of a file .