Skip to content

Commit 30df450

Browse files
committed
More CS fixes
1 parent 55626fc commit 30df450

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/system/Throttle/ThrottleTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ public function testFlooding()
193193
*/
194194
public function testTokenTimeCalculationUCs(int $capacity, int $seconds, array $checkInputs): void
195195
{
196-
$key = 'testkey';
196+
$key = 'testkey';
197197
$throttler = new Throttler($this->cache);
198198

199199
// clear $key before test start
@@ -203,8 +203,8 @@ public function testTokenTimeCalculationUCs(int $capacity, int $seconds, array $
203203
$throttler->setTestTime($checkInput['testTime']);
204204
$checkResult = $throttler->check($key, $capacity, $seconds, $checkInput['cost']);
205205

206-
$this->assertEquals($checkInput['expectedCheckResult'], $checkResult, "Input#{$index}: Wrong check() result");
207-
$this->assertEquals($checkInput['expectedTokenTime'], $throttler->getTokenTime(), "Input#{$index}: Wrong tokenTime");
206+
$this->assertSame($checkInput['expectedCheckResult'], $checkResult, "Input#{$index}: Wrong check() result");
207+
$this->assertSame($checkInput['expectedTokenTime'], $throttler->getTokenTime(), "Input#{$index}: Wrong tokenTime");
208208
}
209209
}
210210

0 commit comments

Comments
 (0)