Skip to content

Commit

Permalink
Add use Exception.
Browse files Browse the repository at this point in the history
  • Loading branch information
howey-aus committed Mar 21, 2019
1 parent 5e63a89 commit 2edeb3a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/Integration/Cache/RedisCacheLockTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Illuminate\Tests\Integration\Cache;

use Exception;
use Illuminate\Support\Carbon;
use Orchestra\Testbench\TestCase;
use Illuminate\Support\Facades\Cache;
Expand Down Expand Up @@ -80,9 +81,9 @@ public function test_redis_locks_with_failed_block_callback_are_released()

try {
$firstLock->block(1, function () {
throw new \Exception('failed');
throw new Exception('failed');
});
} catch (\Exception $e) {
} catch (Exception $e) {
// Not testing the exception, just testing the lock
// is released regardless of the how the exception
// thrown by the callback was handled.
Expand Down

0 comments on commit 2edeb3a

Please sign in to comment.