mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Adding time and memory use to CakeCliReporter
This commit is contained in:
parent
7b5addec3e
commit
f52900f818
1 changed files with 4 additions and 0 deletions
|
@ -117,6 +117,10 @@ class CakeCliReporter extends CakeBaseReporter {
|
|||
$buffer .= ", " . $this->getExceptionCount() . " exceptions";
|
||||
}
|
||||
$buffer .= ".\n";
|
||||
$buffer .= 'Time taken by tests (in seconds): ' . $this->_timeDuration . "\n";
|
||||
if (function_exists('memory_get_peak_usage')) {
|
||||
$buffer .= 'Peak memory use: (in bytes): ' . number_format(memory_get_peak_usage()) . "\n";
|
||||
}
|
||||
fwrite(STDOUT, $buffer);
|
||||
} else {
|
||||
fwrite(STDOUT, $buffer . $this->getPassCount() . " passes.\n");
|
||||
|
|
Loading…
Add table
Reference in a new issue