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