shouldThrowException) { $job->fail($this->shouldThrowException->getMessage()); return $job; } $job->complete(); $job->cbzPath = new CbzPath('/path/to/test.cbz'); return $job; } public function simulateError(\Exception $exception): void { $this->shouldThrowException = $exception; } public function supports(string $sourceType): bool { return true; } }