shouldReport($exception); // Assert $this->assertFalse($shouldReport); } public function test_operational_oauth_exceptions_are_reported(): void { // Arrange $exception = OAuthServerException::serverError('Signing key could not be read'); // Act $shouldReport = app(Handler::class)->shouldReport($exception); // Assert $this->assertTrue($shouldReport); } }