Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

- Merge [5076].

  • Loading branch information...
commit a9bcad7fcf6d44abcf86c8d07f471e78ed42c3a6 1 parent 345c01a
@sebastianbergmann authored
Showing with 8 additions and 3 deletions.
  1. +8 −3 PHPUnit/TextUI/ResultPrinter.php
View
11 PHPUnit/TextUI/ResultPrinter.php
@@ -332,15 +332,20 @@ protected function printSkipped(PHPUnit_Framework_TestResult $result)
protected function printHeader($timeElapsed)
{
if (isset($_SERVER['REQUEST_TIME'])) {
- $timeElapsed = PHPUnit_Util_Timer::secondsToTimeString(time() -
- $_SERVER['REQUEST_TIME']);
+ $timeElapsed = PHPUnit_Util_Timer::secondsToTimeString(
+ time() - $_SERVER['REQUEST_TIME']
+ );
+ } else {
+ $timeElapsed = PHPUnit_Util_Timer::secondsToTimeString(
+ $timeElapsed
+ );
}
$this->write(
sprintf(
"%sTime: %s\n\n",
$this->verbose ? "\n" : "\n\n",
- PHPUnit_Util_Timer::secondsToTimeString($timeElapsed)
+ $timeElapsed
)
);
}
Please sign in to comment.
Something went wrong with that request. Please try again.