Tests are now compliant with php-cs-fixer (CamelCase for method, phpdoc valid)
This commit is contained in:
@@ -1,16 +1,19 @@
|
||||
<?php
|
||||
|
||||
/** DomFramework - Tests
|
||||
* @package domframework
|
||||
* @author Dominique Fournier <dominique@fournier38.fr>
|
||||
* @license BSD
|
||||
*/
|
||||
/**
|
||||
* DomFramework - Tests
|
||||
* @package domframework
|
||||
* @author Dominique Fournier <dominique@fournier38.fr>
|
||||
* @license BSD
|
||||
*/
|
||||
|
||||
namespace Domframework\Tests;
|
||||
|
||||
use Domframework\Ratelimitfile;
|
||||
|
||||
/** Test the Ratelimitfile.php file */
|
||||
/**
|
||||
* Test the Ratelimitfile.php file
|
||||
*/
|
||||
class RatelimitfileTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
public function testRatelimitfile0()
|
||||
@@ -20,7 +23,7 @@ class RatelimitfileTest extends \PHPUnit_Framework_TestCase
|
||||
|
||||
public function testRatelimitfile1()
|
||||
{
|
||||
// Create one non ratelimited entry
|
||||
// Create one non ratelimited entry
|
||||
$ratelimitfile = new Ratelimitfile();
|
||||
$ratelimitfile->storageDir = "/tmp/testDFWratelimit";
|
||||
$res = $ratelimitfile->set("TOTO");
|
||||
@@ -29,7 +32,7 @@ class RatelimitfileTest extends \PHPUnit_Framework_TestCase
|
||||
|
||||
public function testRatelimitfile2()
|
||||
{
|
||||
// Too much entries
|
||||
// Too much entries
|
||||
$ratelimitfile = new Ratelimitfile();
|
||||
$ratelimitfile->storageDir = "/tmp/testDFWratelimit";
|
||||
$ratelimitfile->set("TOTO");
|
||||
@@ -47,7 +50,7 @@ class RatelimitfileTest extends \PHPUnit_Framework_TestCase
|
||||
|
||||
public function testRatelimitfile3()
|
||||
{
|
||||
// Del the ratelimited entry
|
||||
// Del the ratelimited entry
|
||||
$ratelimitfile = new Ratelimitfile();
|
||||
$ratelimitfile->storageDir = "/tmp/testDFWratelimit";
|
||||
$res = $ratelimitfile->del("TOTO");
|
||||
@@ -56,7 +59,7 @@ class RatelimitfileTest extends \PHPUnit_Framework_TestCase
|
||||
|
||||
public function testRatelimitfile4()
|
||||
{
|
||||
// Create one non ratelimited entry
|
||||
// Create one non ratelimited entry
|
||||
$ratelimitfile = new Ratelimitfile();
|
||||
$ratelimitfile->storageDir = "/tmp/testDFWratelimit";
|
||||
$res = $ratelimitfile->set("TOTO");
|
||||
@@ -65,7 +68,7 @@ class RatelimitfileTest extends \PHPUnit_Framework_TestCase
|
||||
|
||||
public function testRatelimitfile5()
|
||||
{
|
||||
// Clean expired entries
|
||||
// Clean expired entries
|
||||
sleep(2);
|
||||
$ratelimitfile = new Ratelimitfile();
|
||||
$ratelimitfile->unittime = 1;
|
||||
|
||||
Reference in New Issue
Block a user