1 | <?php |
||
24 | class ExceptionFormatter |
||
25 | { |
||
26 | /** |
||
27 | * @var OutputInterface |
||
28 | */ |
||
29 | private $output; |
||
30 | |||
31 | /** |
||
32 | * @var array |
||
33 | */ |
||
34 | private $options = [ |
||
35 | 'minMessageVerbosity' => OutputInterface::VERBOSITY_VERBOSE, |
||
36 | 'minTraceVerbosity' => OutputInterface::VERBOSITY_VERY_VERBOSE, |
||
37 | 'messageTemplate' => '<error>%s</error>', |
||
38 | 'traceTemplate' => '%s', |
||
39 | ]; |
||
40 | |||
41 | /** |
||
42 | * @param OutputInterface $output |
||
43 | * @param array $options |
||
44 | * |
||
45 | * @codeCoverageIgnore |
||
46 | */ |
||
47 | public function __construct(OutputInterface $output, array $options = []) |
||
52 | |||
53 | /** |
||
54 | * @param Result $result |
||
55 | */ |
||
56 | 2 | public function outputExceptions(Result $result) |
|
65 | |||
66 | /** |
||
67 | * @param Throwable $exception |
||
68 | */ |
||
69 | 1 | protected function outputExceptionMessage(Throwable $exception) |
|
77 | |||
78 | /** |
||
79 | * @param Throwable $exception |
||
80 | */ |
||
81 | 1 | protected function outputExceptionTrace(Throwable $exception) |
|
89 | } |
||
90 |