Skip to content

Commit 3c39349

Browse files
author
Mike Harrison
committed
change: use assertEquals to compare values
1 parent b1812a0 commit 3c39349

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/Http/Middleware/RateLimitTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,8 @@ public function testRateLimitingWithLimitsSetOnRoute()
162162
$this->assertArrayHasKey('x-ratelimit-limit', $response->headers->all());
163163
$this->assertArrayHasKey('x-ratelimit-remaining', $response->headers->all());
164164
$this->assertArrayHasKey('x-ratelimit-reset', $response->headers->all());
165-
$this->assertSame('4', $response->headers->get('x-ratelimit-remaining'));
166-
$this->assertSame('5', $response->headers->get('x-ratelimit-limit'));
165+
$this->assertEquals(4, $response->headers->get('x-ratelimit-remaining'));
166+
$this->assertEquals(5, $response->headers->get('x-ratelimit-limit'));
167167
}
168168

169169
public function testRateLimitingWithRouteThrottle()
@@ -185,7 +185,7 @@ public function testRateLimitingWithRouteThrottle()
185185
$this->assertArrayHasKey('x-ratelimit-limit', $response->headers->all());
186186
$this->assertArrayHasKey('x-ratelimit-remaining', $response->headers->all());
187187
$this->assertArrayHasKey('x-ratelimit-reset', $response->headers->all());
188-
$this->assertSame('9', $response->headers->get('x-ratelimit-remaining'));
189-
$this->assertSame('10', $response->headers->get('x-ratelimit-limit'));
188+
$this->assertEquals(9, $response->headers->get('x-ratelimit-remaining'));
189+
$this->assertEquals(10, $response->headers->get('x-ratelimit-limit'));
190190
}
191191
}

0 commit comments

Comments
 (0)