Skip to content

Instantly share code, notes, and snippets.

@matej21
Created September 5, 2014 18:50
Show Gist options
  • Save matej21/07be416bd5fd2d9b5d26 to your computer and use it in GitHub Desktop.
Save matej21/07be416bd5fd2d9b5d26 to your computer and use it in GitHub Desktop.
tester + clover format
<<?php ?>?xml version="1.0" encoding="UTF-8"?>
<coverage generated="<?php echo time(); ?>">
<project>
<?php foreach ($files as $id => $info): ?>
<file name="<?php echo htmlspecialchars($info->file); ?>">
<?php foreach ($info->lines as $line => $arg): if($arg < -1) continue; ?>
<line num="<?php echo intval($line); ?>" count="<?php echo $arg >= 1 ? 1 : 0 ?>"/>
<?php endforeach; ?>
</file>
<?php endforeach; ?>
</project>
</coverage>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment