Update tst/Persistence/TrafficLimiterTest.php
Co-authored-by: rugk <rugk+git@posteo.de>
This commit is contained in:
parent
288cf3f005
commit
77153a9b49
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@ class TrafficLimiterTest extends PHPUnit_Framework_TestCase
|
||||||
try {
|
try {
|
||||||
$this->assertFalse(TrafficLimiter::canPass(), 'expected an exception');
|
$this->assertFalse(TrafficLimiter::canPass(), 'expected an exception');
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
$this->assertEquals($e->getMessage(), 'Please wait 4 seconds between each post.', 'request is to fast, invalid range');
|
$this->assertEquals($e->getMessage(), 'Please wait 4 seconds between each post.', 'request is too fast, invalid range');
|
||||||
}
|
}
|
||||||
$_SERVER['REMOTE_ADDR'] = 'foobar';
|
$_SERVER['REMOTE_ADDR'] = 'foobar';
|
||||||
$this->assertTrue(TrafficLimiter::canPass(), 'non-IP address');
|
$this->assertTrue(TrafficLimiter::canPass(), 'non-IP address');
|
||||||
|
|
Loading…
Reference in a new issue