diff --git a/cli/flushdns.php b/cli/flushdns.php index 6826897..dd0ad35 100644 --- a/cli/flushdns.php +++ b/cli/flushdns.php @@ -1,16 +1,18 @@ #!/usr/bin/env php register(); +if (class_exists(Provider::class)) { + (new Provider)->register(); } $ipVersion = null; diff --git a/tests/Unit/ArchTest.php b/tests/Unit/ArchTest.php index 40d2966..2659771 100644 --- a/tests/Unit/ArchTest.php +++ b/tests/Unit/ArchTest.php @@ -1,5 +1,7 @@ expect('KnotsPHP\FlushDNS\Enums') ->toBeEnums(); @@ -14,7 +16,7 @@ arch('exceptions') ->expect('KnotsPHP\FlushDNS\Exceptions') - ->toExtend(\KnotsPHP\FlushDNS\Exceptions\Exception::class) - ->ignoring(\KnotsPHP\FlushDNS\Exceptions\Exception::class); + ->toExtend(Exception::class) + ->ignoring(Exception::class); arch('debug')->preset()->php();