aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Security/RateLimiting/LimiterTest.php
Commit message (Collapse)AuthorAgeFilesLines
* chore: run rector on testsRobin Appelman2025-06-121-2/+3
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix: log requests exceeding the rate limitingbug/noid/log-requests-exceeding-rate-limitDaniel Kesselberg2025-05-141-5/+18
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* refactor: Add void return type to PHPUnit test methodsChristoph Wurst2024-09-151-4/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* chore: Add SPDX headerAndy Scherzinger2024-05-131-17/+2
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* Adjust testsLukas Reschke2021-09-061-10/+6
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Adjust logic to store period instead of current timestampLukas Reschke2021-09-061-13/+0
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Make Security module strictJ0WI2021-04-191-0/+3
| | | | Signed-off-by: J0WI <J0WI@users.noreply.github.com>
* Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to ↵Morris Jobke2020-08-121-6/+6
| | | | | | \PHPUnit\Framework\MockObject\MockObject Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Remove unused importsChristoph Wurst2020-03-251-3/+0
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Mode to modern phpunitRoeland Jago Douma2019-11-271-9/+9
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Make phpunit8 compatibleRoeland Jago Douma2019-11-271-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix report of phpstan in LimiterRoeland Jago Douma2019-08-191-8/+0
| | | | | | | | * unneeded arguments to constructor * added return types * let automatic DI do its work Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add support for ratelimiting via annotationsLukas Reschke2017-04-131-0/+161
This allows adding rate limiting via annotations to controllers, as one example: ``` @UserRateThrottle(limit=5, period=100) @AnonRateThrottle(limit=1, period=100) ``` Would mean that logged-in users can access the page 5 times within 100 seconds, and anonymous users 1 time within 100 seconds. If only an AnonRateThrottle is specified that one will also be applied to logged-in users. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>