'reset' => '5 minutes',
'limits' =>
[ [ 'limit' => 3,
'interval' => '10 seconds',
],
],
];
$factory =
new RateLimiterFactory( $config,
new CacheStorage(new ArrayAdapter()),
$this->
createMock(SystemConfigService::
class),
$this->
createMock(LockFactory::
class),
);
static::
assertInstanceOf(NoLimiter::
class,
$factory->
create('example'
));
} public function testRateLimitNewsletterForm(): void
{ for ($i = 0;
$i <= 3; ++
$i) { $this->browser