[Lock] Legacy test should implement legacy interface

This commit is contained in:
Amrouche Hamza 2019-08-05 09:00:45 +02:00
parent 85058f5810
commit 920db2fc18
No known key found for this signature in database
GPG Key ID: E45A3DA456145BC1

View File

@ -18,6 +18,7 @@ use Symfony\Component\Lock\Exception\LockConflictedException;
use Symfony\Component\Lock\Key;
use Symfony\Component\Lock\Lock;
use Symfony\Component\Lock\PersistingStoreInterface;
use Symfony\Component\Lock\StoreInterface;
/**
* @author Jérémy Derussé <jeremy@derusse.com>
@ -56,7 +57,7 @@ class LockTest extends TestCase
public function testPassingOldStoreInterface()
{
$key = new Key(uniqid(__METHOD__, true));
$store = $this->getMockBuilder(PersistingStoreInterface::class)->getMock();
$store = $this->getMockBuilder(StoreInterface::class)->getMock();
$lock = new Lock($key, $store);
$store