Update unit test route : add a random ratelimit dir instead of data (to allow to restart the test from empty)
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2545 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
@@ -325,6 +325,7 @@ class test_route extends PHPUnit_Framework_TestCase
|
||||
public function test_errorRateLimit1 ()
|
||||
{
|
||||
$route = new route ();
|
||||
$route->ratelimiter->storageDir = "/tmp/ratelimit-".time();
|
||||
$route->error (new \Exception ("test1", 500));
|
||||
$route->error (new \Exception ("test2", 500));
|
||||
$route->error (new \Exception ("test3", 500));
|
||||
|
||||
Reference in New Issue
Block a user