mirror of
https://github.com/pestphp/pest.git
synced 2026-03-11 02:07:23 +01:00
16 lines
452 B
PHP
16 lines
452 B
PHP
<?php
|
|
|
|
use Symfony\Component\Process\Process;
|
|
|
|
test('visual snapshot of help command output', function () {
|
|
$output = function () {
|
|
$process = (new Process(['php', 'bin/pest', '--help'], null, ['COLLISION_PRINTER' => 'DefaultPrinter', 'COLLISION_IGNORE_DURATION' => 'true']));
|
|
|
|
$process->run();
|
|
|
|
return removeAnsiEscapeSequences($process->getOutput());
|
|
};
|
|
|
|
expect($output())->toMatchSnapshot();
|
|
})->skipOnWindows();
|