From 7a46514df855ed3817abbd5e11841e52558599e7 Mon Sep 17 00:00:00 2001 From: Nuno Maduro Date: Thu, 25 Jan 2024 17:32:02 +0000 Subject: [PATCH] fix: removes `process-isolation` from --help output --- src/Plugins/Help.php | 4 ++++ .../Visual/Help/visual_snapshot_of_help_command_output.snap | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Plugins/Help.php b/src/Plugins/Help.php index 9e1c3f53..205610f0 100644 --- a/src/Plugins/Help.php +++ b/src/Plugins/Help.php @@ -61,6 +61,10 @@ final class Help implements HandlesArguments assert(is_string($argument)); + if (trim($argument) === '--process-isolation') { + continue; + } + View::render('components.two-column-detail', [ 'left' => $this->colorizeOptions($argument), 'right' => preg_replace(['//'], ['[', ']'], $description), diff --git a/tests/.pest/snapshots/Visual/Help/visual_snapshot_of_help_command_output.snap b/tests/.pest/snapshots/Visual/Help/visual_snapshot_of_help_command_output.snap index b3f8e934..0cef4c01 100644 --- a/tests/.pest/snapshots/Visual/Help/visual_snapshot_of_help_command_output.snap +++ b/tests/.pest/snapshots/Visual/Help/visual_snapshot_of_help_command_output.snap @@ -38,7 +38,6 @@ EXECUTION OPTIONS: --parallel ........................................... Run tests in parallel --update-snapshots Update snapshots for tests using the "toMatchSnapshot" expectation - --process-isolation ................ Run each test in a separate PHP process --globals-backup ................. Backup and restore $GLOBALS for each test --static-backup ......... Backup and restore static properties for each test --strict-coverage ................... Be strict about code coverage metadata