Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 2c5089b

Browse filesBrowse files
committed
[Lock] Fix tests
1 parent 29654a4 commit 2c5089b
Copy full SHA for 2c5089b

File tree

Expand file treeCollapse file tree

8 files changed

+10
-15
lines changed
Filter options
Expand file treeCollapse file tree

8 files changed

+10
-15
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Lock/Store/CombinedStore.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
*
2828
* @author Jérémy Derussé <jeremy@derusse.com>
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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Lock/Store/FlockStore.php
+1-2Lines 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 <imprec@gmail.com>
3029
* @author Nicolas Grekas <p@tchwork.com>
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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Lock/Store/MemcachedStore.php
+1-2Lines 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é <jeremy@derusse.com>
2524
*/
26-
class MemcachedStore implements StoreInterface, PersistStoreInterface
25+
class MemcachedStore implements StoreInterface
2726
{
2827
use ExpiringStoreTrait;
2928

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Lock/Store/PdoStore.php
+1-2Lines 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é <jeremy@derusse.com>
3736
*/
38-
class PdoStore implements StoreInterface, PersistStoreInterface
37+
class PdoStore implements StoreInterface
3938
{
4039
use ExpiringStoreTrait;
4140

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Lock/Store/RedisStore.php
+1-2Lines 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é <jeremy@derusse.com>
2726
*/
28-
class RedisStore implements StoreInterface, PersistStoreInterface
27+
class RedisStore implements StoreInterface
2928
{
3029
use ExpiringStoreTrait;
3130

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Lock/Store/SemaphoreStore.php
+1-2Lines 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é <jeremy@derusse.com>
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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Lock/Store/ZookeeperStore.php
+1-2Lines 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 <gchandrasekaran@wayfair.com>
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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Lock/Tests/Store/CombinedStoreTest.php
+3-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.