Skip to content
Browse files

Adding line number in verbose test command output.

  • Loading branch information...
1 parent b8718bc commit 553eac5e8ba412f96e12a156b37ea85e2d5820c7 @davidpersson davidpersson committed May 19, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 console/command/Test.php
View
3 console/command/Test.php
@@ -100,8 +100,9 @@ protected function _init() {
if ($command->verbose) {
$reporter = function($result) use ($command, $colorize) {
$command->out(sprintf(
- '[%s] %s::%s()',
+ '[%s] on line %4d in %s::%s()',
$colorize(sprintf('%9s', $result['result'])),
+ isset($result['line']) ? $result['line'] : '??',
isset($result['class']) ? $result['class'] : '??',
isset($result['method']) ? $result['method'] : '??'
));

0 comments on commit 553eac5

Please sign in to comment.
Something went wrong with that request. Please try again.