tests: add visual test for help output

This commit is contained in:
Owen Voke
2020-11-12 09:11:51 +00:00
parent e7585a4ba2
commit feb6417f45
2 changed files with 17 additions and 1 deletions

13
tests/Visual/Help.php Normal file
View 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:');
});