FEATURE: Show max memory usage on dev/tests/all

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@64461 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2008-10-16 22:26:16 +00:00
parent e30b5e3f22
commit 509f14d6ae

View File

@ -27,7 +27,8 @@ class CliTestReporter extends SapphireTestReporter {
} else {
echo SSCli::text(" AT LEAST ONE FAILURE ", "white", "red");
}
echo "\n\n$testCount tests run: " . SSCli::text("$passCount passes", $passCount > 0 ? "green" : null) . ", ". SSCli::text("$failCount fails", $failCount > 0 ? "red" : null) . ", and 0 exceptions\n\n";
echo "\n\n$testCount tests run: " . SSCli::text("$passCount passes", $passCount > 0 ? "green" : null) . ", ". SSCli::text("$failCount fails", $failCount > 0 ? "red" : null) . ", and 0 exceptions\n";
echo "Maximum memory usage: " . number_format(memory_get_peak_usage(), 0) . "\n\n";
}
public function endTest( PHPUnit_Framework_Test $test, $time) {