'Patrick', 'lastname' => 'Brouwers', ]), ]); } /** * @param User $user * @return array */ public function map($user): array { throw new Exception('we expect this'); } /** * @param Exception $exception */ public function failed(Exception $exception) { Assert::assertEquals('we expect this', $exception->getMessage()); app()->bind('queue-has-failed', function () { return true; }); } }