// old token is not valid anymore after 60 seconds
$this->
assertFalse($provider->
verifyToken($token,
$oldValue));
} /**
* @return DoctrineTokenProvider
*/
private function bootstrapProvider() { $config = ORMSetup::
createConfiguration(true
);
if (class_exists(DefaultSchemaManagerFactory::
class)) { $config->
setSchemaManagerFactory(new DefaultSchemaManagerFactory());
} $config->
setLazyGhostObjectEnabled(true
);
$connection = DriverManager::
getConnection([ 'driver' => 'pdo_sqlite',
'memory' => true,
],
$config);
$connection->
executeStatement(<<< 'SQL'
CREATE TABLE rememberme_token (
series char(88) UNIQUE PRIMARY KEY NOT NULL,
value char(88) NOT NULL,
lastUsed datetime NOT NULL,
class varchar(100) NOT NULL,
username varchar(200) NOT NULL
);