| 1 | <?php |
||
| 7 | class Phpunit extends Screen |
||
| 8 | { |
||
| 9 | /** @var string */ |
||
| 10 | protected $phpunitArguments; |
||
| 11 | |||
| 12 | public function __construct(string $phpunitArguments = '') |
||
| 16 | |||
| 17 | public function draw() |
||
| 24 | |||
| 25 | public function registerListeners() |
||
| 51 | |||
| 52 | protected function writeHeader() |
||
| 66 | |||
| 67 | protected function runTests() |
||
| 77 | |||
| 78 | protected function displayManual() |
||
| 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
exitexpression 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.