tests: add test for help output

This commit is contained in:
Owen Voke
2020-11-10 13:56:26 +00:00
parent 78181f66f6
commit c33ab0f670

View File

@ -0,0 +1,12 @@
<?php
use Pest\Console\Help;
use Symfony\Component\Console\Output\BufferedOutput;
it('outputs the help information when --help is used', function () {
$output = new BufferedOutput();
$plugin = new Help($output);
$plugin();
expect($output->fetch())->toContain('Pest Options:');
});