diff --git a/src/Illuminate/Testing/PendingCommand.php b/src/Illuminate/Testing/PendingCommand.php index 062d2a17738c..0946161d4caf 100644 --- a/src/Illuminate/Testing/PendingCommand.php +++ b/src/Illuminate/Testing/PendingCommand.php @@ -354,6 +354,8 @@ public function run() $this->verifyExpectations(); $this->flushExpectations(); + $this->app->offsetUnset(OutputStyle::class); + return $exitCode; }