@@ -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