| | 848 | |
|---|
| | 849 | if ($this->options['verbose']) |
|---|
| | 850 | { |
|---|
| | 851 | foreach ($this->to_array() as $testsuite) |
|---|
| | 852 | { |
|---|
| | 853 | $first = true; |
|---|
| | 854 | foreach ($testsuite['stats']['failed'] as $testcase) |
|---|
| | 855 | { |
|---|
| | 856 | if (!isset($testsuite['tests'][$testcase]['file'])) |
|---|
| | 857 | { |
|---|
| | 858 | continue; |
|---|
| | 859 | } |
|---|
| | 860 | |
|---|
| | 861 | if ($first) |
|---|
| | 862 | { |
|---|
| | 863 | $this->output->echoln(''); |
|---|
| | 864 | $this->output->error($testsuite['file']); |
|---|
| | 865 | $first = false; |
|---|
| | 866 | } |
|---|
| | 867 | |
|---|
| | 868 | $this->output->comment(sprintf(' at %s line %s', $testsuite['tests'][$testcase]['file'], $testsuite['tests'][$testcase]['line'])); |
|---|
| | 869 | $this->output->info(' '.$testsuite['tests'][$testcase]['message']); |
|---|
| | 870 | $this->output->echoln($testsuite['tests'][$testcase]['error']); |
|---|
| | 871 | } |
|---|
| | 872 | } |
|---|
| | 873 | } |
|---|