shouldThrowException) { throw $this->shouldThrowException; } } public function simulateError(\Exception $exception): void { $this->shouldThrowException = $exception; } public function supports(string $sourceType): bool { return true; } }