diff --git a/phpunit.xml b/phpunit.xml index 8b6e5ff..2118094 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -1,14 +1,20 @@ @@ -25,4 +31,8 @@ src/Exceptions + + + + diff --git a/tests/Laravel/MaxBotServiceProviderTest.php b/tests/Laravel/MaxBotServiceProviderTest.php index 9ce0e1a..e878823 100644 --- a/tests/Laravel/MaxBotServiceProviderTest.php +++ b/tests/Laravel/MaxBotServiceProviderTest.php @@ -92,6 +92,8 @@ final class MaxBotServiceProviderTest extends TestCase #[PreserveGlobalState(false)] public function itThrowsExceptionWhenGuzzleIsMissing(): void { + error_reporting(E_ALL & ~E_DEPRECATED); + $this->expectException(LogicException::class); $this->expectExceptionMessage( 'Guzzle HTTP client is required. Please run "composer require guzzlehttp/guzzle".' diff --git a/tests/bootstrap.php b/tests/bootstrap.php new file mode 100644 index 0000000..db04446 --- /dev/null +++ b/tests/bootstrap.php @@ -0,0 +1,5 @@ +