Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
78 | protected function displayManual() |
||
79 | { |
||
80 | $this->terminal |
||
81 | ->emptyLine() |
||
82 | ->write('Press a to run all tests.') |
||
83 | ->write('Press t to filter by test name.') |
||
84 | ->write('Press p to filter by file name.') |
||
85 | ->write('Press q to quit the watcher.') |
||
86 | ->write('Press Enter to trigger a test run.'); |
||
87 | |||
88 | return $this; |
||
89 | } |
||
90 | } |
||
91 |
An exit expression should only be used in rare cases. For example, if you write a short command line script.
In most cases however, using an
exit
expression makes the code untestable and often causes incompatibilities with other libraries. Thus, unless you are absolutely sure it is required here, we recommend to refactor your code to avoid its usage.