add initial solution (made with copilot)

This commit is contained in:
2026-07-13 12:05:43 +02:00
commit 250ee892dc
25 changed files with 860 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
<?php
use PHPUnit\Framework\TestCase;
use Core\RateLimiter\RateLimiterInterface;
use Core\RateLimiter\InMemoryRateLimiter;
final class SomeControllerTest extends TestCase {
public function testRateLimitedPath() {
$limiter = new InMemoryRateLimiter(2, 60);
$this->assertTrue($limiter->allow('client1'));
$this->assertTrue($limiter->allow('client1'));
$this->assertFalse($limiter->allow('client1'));
}
}