Skip to content

Commit

Permalink
Ignore coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
jenky committed Sep 22, 2023
1 parent 2793486 commit ea7fd37
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Concurrency/DriverDiscovery.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,13 @@ public static function prefer(Driver $driver): void
};

if (! $check) {
// @codeCoverageIgnoreStart
throw new \InvalidArgumentException(\sprintf(
'You cannot use the driver %s as required packages are not installed. Try running "composer require %s"',
$driver->name,
$driver->value
));
// @codeCoverageIgnoreEnd
}

self::$preferred = $driver;
Expand Down

0 comments on commit ea7fd37

Please sign in to comment.