protected function printFooter(\PHPUnit_Framework_TestResult $result)
{
$this->write('<span class="result">');
parent::printFooter($result);
$this->write('</span>');
$this->write('<table class="timer">');
$this->write('<tr><th class="title" colspan="2">Long running tests</th></tr>');
$this->write('<tr><th>Test</th><th>Time</th></tr>');
foreach (Timer::getLongRunningTests(10) as $testName => $timeTaken) {
$timeTaken = round($timeTaken, 2) . 's';
$this->write("<tr><td>{$testName}</td><td>{$timeTaken}</td></td>");
}
$this->write('</table>');
$this->incrementalFlush();
}