mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-13 04:53:26 +00:00
Move CSRFTestProvider class to a PSR 0 compatible file
This commit is contained in:
@@ -988,21 +988,3 @@ abstract class PhraseanetPHPUnitAbstract extends WebTestCase
|
||||
->getMock();
|
||||
}
|
||||
}
|
||||
|
||||
class CsrfTestProvider implements CsrfProviderInterface
|
||||
{
|
||||
public function generateCsrfToken($intention)
|
||||
{
|
||||
return mt_rand();
|
||||
}
|
||||
|
||||
public function isCsrfTokenValid($intention, $token)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
class PDOMock extends \PDO
|
||||
{
|
||||
public function __construct() {}
|
||||
}
|
||||
|
Reference in New Issue
Block a user