Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2c5089b

Browse files
committed
[Lock] Fix tests
1 parent 29654a4 commit 2c5089b

File tree

8 files changed

+10
-15
lines changed

8 files changed

+10
-15
lines changed

src/Symfony/Component/Lock/Store/CombinedStore.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
*
2828
* @author Jérémy Derussé <[email protected]>
2929
*/
30-
class CombinedStore implements StoreInterface, PersistStoreInterface, LoggerAwareInterface
30+
class CombinedStore implements StoreInterface, LoggerAwareInterface
3131
{
3232
use LoggerAwareTrait;
3333
use ExpiringStoreTrait;

src/Symfony/Component/Lock/Store/FlockStore.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
use Symfony\Component\Lock\Exception\LockConflictedException;
1717
use Symfony\Component\Lock\Exception\LockStorageException;
1818
use Symfony\Component\Lock\Key;
19-
use Symfony\Component\Lock\PersistStoreInterface;
2019
use Symfony\Component\Lock\StoreInterface;
2120

2221
/**
@@ -29,7 +28,7 @@
2928
* @author Romain Neutron <[email protected]>
3029
* @author Nicolas Grekas <[email protected]>
3130
*/
32-
class FlockStore implements StoreInterface, BlockingStoreInterface, PersistStoreInterface
31+
class FlockStore implements StoreInterface, BlockingStoreInterface
3332
{
3433
private $lockPath;
3534

src/Symfony/Component/Lock/Store/MemcachedStore.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,14 @@
1515
use Symfony\Component\Lock\Exception\InvalidTtlException;
1616
use Symfony\Component\Lock\Exception\LockConflictedException;
1717
use Symfony\Component\Lock\Key;
18-
use Symfony\Component\Lock\PersistStoreInterface;
1918
use Symfony\Component\Lock\StoreInterface;
2019

2120
/**
2221
* MemcachedStore is a StoreInterface implementation using Memcached as store engine.
2322
*
2423
* @author Jérémy Derussé <[email protected]>
2524
*/
26-
class MemcachedStore implements StoreInterface, PersistStoreInterface
25+
class MemcachedStore implements StoreInterface
2726
{
2827
use ExpiringStoreTrait;
2928

src/Symfony/Component/Lock/Store/PdoStore.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
use Symfony\Component\Lock\Exception\LockConflictedException;
2020
use Symfony\Component\Lock\Exception\NotSupportedException;
2121
use Symfony\Component\Lock\Key;
22-
use Symfony\Component\Lock\PersistStoreInterface;
2322
use Symfony\Component\Lock\StoreInterface;
2423

2524
/**
@@ -35,7 +34,7 @@
3534
*
3635
* @author Jérémy Derussé <[email protected]>
3736
*/
38-
class PdoStore implements StoreInterface, PersistStoreInterface
37+
class PdoStore implements StoreInterface
3938
{
4039
use ExpiringStoreTrait;
4140

src/Symfony/Component/Lock/Store/RedisStore.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,14 @@
1717
use Symfony\Component\Lock\Exception\InvalidTtlException;
1818
use Symfony\Component\Lock\Exception\LockConflictedException;
1919
use Symfony\Component\Lock\Key;
20-
use Symfony\Component\Lock\PersistStoreInterface;
2120
use Symfony\Component\Lock\StoreInterface;
2221

2322
/**
2423
* RedisStore is a StoreInterface implementation using Redis as store engine.
2524
*
2625
* @author Jérémy Derussé <[email protected]>
2726
*/
28-
class RedisStore implements StoreInterface, PersistStoreInterface
27+
class RedisStore implements StoreInterface
2928
{
3029
use ExpiringStoreTrait;
3130

src/Symfony/Component/Lock/Store/SemaphoreStore.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,14 @@
1515
use Symfony\Component\Lock\Exception\InvalidArgumentException;
1616
use Symfony\Component\Lock\Exception\LockConflictedException;
1717
use Symfony\Component\Lock\Key;
18-
use Symfony\Component\Lock\PersistStoreInterface;
1918
use Symfony\Component\Lock\StoreInterface;
2019

2120
/**
2221
* SemaphoreStore is a StoreInterface implementation using Semaphore as store engine.
2322
*
2423
* @author Jérémy Derussé <[email protected]>
2524
*/
26-
class SemaphoreStore implements StoreInterface, PersistStoreInterface, BlockingStoreInterface
25+
class SemaphoreStore implements StoreInterface, BlockingStoreInterface
2726
{
2827
/**
2928
* Returns whether or not the store is supported.

src/Symfony/Component/Lock/Store/ZookeeperStore.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,14 @@
1616
use Symfony\Component\Lock\Exception\LockReleasingException;
1717
use Symfony\Component\Lock\Exception\NotSupportedException;
1818
use Symfony\Component\Lock\Key;
19-
use Symfony\Component\Lock\PersistStoreInterface;
2019
use Symfony\Component\Lock\StoreInterface;
2120

2221
/**
2322
* ZookeeperStore is a StoreInterface implementation using Zookeeper as store engine.
2423
*
2524
* @author Ganesh Chandrasekaran <[email protected]>
2625
*/
27-
class ZookeeperStore implements StoreInterface, PersistStoreInterface
26+
class ZookeeperStore implements StoreInterface
2827
{
2928
use ExpiringStoreTrait;
3029

src/Symfony/Component/Lock/Tests/Store/CombinedStoreTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
use Symfony\Component\Lock\PersistStoreInterface;
1818
use Symfony\Component\Lock\Store\CombinedStore;
1919
use Symfony\Component\Lock\Store\RedisStore;
20+
use Symfony\Component\Lock\StoreInterface;
2021
use Symfony\Component\Lock\Strategy\StrategyInterface;
2122
use Symfony\Component\Lock\Strategy\UnanimousStrategy;
2223

@@ -267,8 +268,8 @@ public function testputOffExpirationAbortWhenStrategyCantBeMet()
267268

268269
public function testPutOffExpirationIgnoreNonExpiringStorage()
269270
{
270-
$store1 = $this->getMockBuilder([PersistStoreInterface::class, BlockingStoreInterface::class])->getMock();
271-
$store2 = $this->getMockBuilder([PersistStoreInterface::class, BlockingStoreInterface::class])->getMock();
271+
$store1 = $this->getMockBuilder(StoreInterface::class)->getMock();
272+
$store2 = $this->getMockBuilder(StoreInterface::class)->getMock();
272273

273274
$store = new CombinedStore([$store1, $store2], $this->strategy);
274275

0 commit comments

Comments
 (0)