mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
tests: add test for help output
This commit is contained in:
12
tests/Unit/Console/Help.php
Normal file
12
tests/Unit/Console/Help.php
Normal 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:');
|
||||||
|
});
|
||||||
Reference in New Issue
Block a user