This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* This script is used to process the output of a PHPUnit test run | |
* that uses --log-junit for the purposes of timing each executed | |
* test method. It outputs test methods with their respective | |
* runtimes in order from largest to smallest. Times are in | |
* seconds. The script accepts paths to any number of files in the | |
* JUnit log format. | |
* | |
* Ex: php phpunit-log-junit.php /path/to/junit-log1.xml /path/to/junit-log2.xml ... |