diff --git a/src/KernelDump.php b/src/KernelDump.php index 4ecfe24b..383da0e6 100644 --- a/src/KernelDump.php +++ b/src/KernelDump.php @@ -4,6 +4,7 @@ declare(strict_types=1); namespace Pest; +use Laravel\Pao\Execution; use Pest\Support\View; use Symfony\Component\Console\Output\OutputInterface; @@ -28,6 +29,10 @@ final class KernelDump */ public function enable(): void { + if (class_exists(Execution::class) && Execution::running()) { + return; + } + ob_start(function (string $message): string { $this->buffer .= $message; diff --git a/src/Pest.php b/src/Pest.php index 41168cc4..476616a4 100644 --- a/src/Pest.php +++ b/src/Pest.php @@ -6,7 +6,7 @@ namespace Pest; function version(): string { - return '5.0.0-rc.8'; + return '5.0.0-rc.9'; } function testDirectory(string $file = ''): string 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 febdf908..a2d965e7 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 @@ -1,5 +1,5 @@ - Pest Testing Framework 5.0.0-rc.8. + Pest Testing Framework 5.0.0-rc.9. USAGE: pest [options] diff --git a/tests/.pest/snapshots/Visual/Version/visual_snapshot_of_help_command_output.snap b/tests/.pest/snapshots/Visual/Version/visual_snapshot_of_help_command_output.snap index d62d4c59..682606ef 100644 --- a/tests/.pest/snapshots/Visual/Version/visual_snapshot_of_help_command_output.snap +++ b/tests/.pest/snapshots/Visual/Version/visual_snapshot_of_help_command_output.snap @@ -1,3 +1,3 @@ - Pest Testing Framework 5.0.0-rc.8. + Pest Testing Framework 5.0.0-rc.9.