mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
tests: add visual test for help output
This commit is contained in:
13
tests/Visual/Help.php
Normal file
13
tests/Visual/Help.php
Normal file
@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
test('visual snapshot of help command output', function () {
|
||||
$output = function () {
|
||||
$process = (new Symfony\Component\Process\Process(['php', 'bin/pest', '--help', '--colors=never']));
|
||||
|
||||
$process->run();
|
||||
|
||||
return $process->getOutput();
|
||||
};
|
||||
|
||||
expect($output())->toContain('Pest Options:');
|
||||
});
|
||||
Reference in New Issue
Block a user