- add documentation for EF API calling implementation
- greater adherence to standards
- better DI logic
This commit is contained in:
2026-07-13 17:09:36 +02:00
parent 250ee892dc
commit 1766057cb9
13 changed files with 235 additions and 57 deletions
+3 -2
View File
@@ -25,9 +25,10 @@ final class RateLimiterTest extends TestCase {
}
public function testBlocksWhenExceeded(): void {
$limiter = new FileRateLimiter($this->dir);
$requests = 5;
$limiter = new FileRateLimiter($this->dir, $requests, 60);
$key = 'test-client-2';
$requests = (int) \Core\Config::get('rate_limit_requests', 5);
for ($i = 0; $i < $requests; $i++) {
$this->assertTrue($limiter->allow($key));
}