We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 064ab3f + b1c997a commit 1701a30Copy full SHA for 1701a30
src/Expectations/OppositeExpectation.php
@@ -15,6 +15,7 @@
15
use Pest\Arch\SingleArchExpectation;
16
use Pest\Arch\Support\FileLineFinder;
17
use Pest\Exceptions\InvalidExpectation;
18
+use Pest\Exceptions\MissingDependency;
19
use Pest\Expectation;
20
use Pest\Support\Arr;
21
use Pest\Support\Exporter;
@@ -284,6 +285,10 @@ public function toHaveMethod(array|string $method): ArchExpectation
284
285
*/
286
public function toHaveSuspiciousCharacters(): ArchExpectation
287
{
288
+ if (! class_exists(Spoofchecker::class)) {
289
+ throw new MissingDependency(__FUNCTION__, 'ext-intl >= 2.0');
290
+ }
291
+
292
$checker = new Spoofchecker;
293
294
/** @var Expectation<array<int, string>|string> $original */
0 commit comments