From 236a0e8feebd800b6bd49be90833236b0dc8e39f Mon Sep 17 00:00:00 2001 From: Ben Comeau Date: Fri, 2 Mar 2018 08:02:41 -0800 Subject: [PATCH] Update assertion to a more appropriate method --- tests/Integration/Http/ThrottleRequestsTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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']);