Skip to content

Commit

Permalink
Update assertion to a more appropriate method
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Comeau committed Mar 2, 2018
1 parent d84eeac commit 236a0e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Integration/Http/ThrottleRequestsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
Expand Down

0 comments on commit 236a0e8

Please sign in to comment.