diff --git a/tests/Integration/Http/ThrottleRequestsTest.php b/tests/Integration/Http/ThrottleRequestsTest.php index 789bce851976..08660404df95 100644 --- a/tests/Integration/Http/ThrottleRequestsTest.php +++ b/tests/Integration/Http/ThrottleRequestsTest.php @@ -50,7 +50,7 @@ public function test_lock_opens_immediately_after_decay() try { $this->withoutExceptionHandling()->get('/'); } catch (Throwable $e) { - $this->assertTrue($e instanceof ThrottleRequestsException); + $this->assertInstanceOf(ThrottleRequestsException::class, $e); $this->assertEquals(429, $e->getStatusCode()); $this->assertEquals(2, $e->getHeaders()['X-RateLimit-Limit']); $this->assertEquals(0, $e->getHeaders()['X-RateLimit-Remaining']);