diff --git a/tests/Integrate/Bootstrap/HandleProvidersTest.php b/tests/Integrate/Bootstrap/HandleProvidersTest.php new file mode 100644 index 00000000..8bfd1127 --- /dev/null +++ b/tests/Integrate/Bootstrap/HandleProvidersTest.php @@ -0,0 +1,29 @@ +set('environment', 'testing'); + + $handle = new HandleProviders(); + $handle->bootstrap($app); + + $this->expectException(\ErrorException::class); + $this->expectExceptionMessage(__CLASS__); + $handle->handleError(E_ERROR, __CLASS__, __FILE__, __LINE__); + + $app->flush(); + } +}