File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ public function testCreateLock()
54
54
55
55
public function testCreateLockFromKey ()
56
56
{
57
- $ store = $ this ->getMockBuilder (PersistingStoreInterface::class)-> getMock ( );
57
+ $ store = $ this ->createMock (PersistingStoreInterface::class);
58
58
$ store ->expects ($ this ->any ())->method ('exists ' )->willReturn (false );
59
59
60
60
$ keys = [];
@@ -68,7 +68,7 @@ public function testCreateLockFromKey()
68
68
}))
69
69
->willReturn (true );
70
70
71
- $ logger = $ this ->getMockBuilder (LoggerInterface::class)-> getMock ( );
71
+ $ logger = $ this ->createMock (LoggerInterface::class);
72
72
$ factory = new LockFactory ($ store );
73
73
$ factory ->setLogger ($ logger );
74
74
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ public function testAcquireNoBlockingWithPersistingStoreInterface()
63
63
public function testAcquireBlockingWithPersistingStoreInterface ()
64
64
{
65
65
$ key = new Key (uniqid (__METHOD__ , true ));
66
- $ store = $ this ->getMockBuilder (PersistingStoreInterface::class)-> getMock ( );
66
+ $ store = $ this ->createMock (PersistingStoreInterface::class);
67
67
$ lock = new Lock ($ key , $ store );
68
68
69
69
$ store
@@ -79,7 +79,7 @@ public function testAcquireBlockingWithPersistingStoreInterface()
79
79
public function testAcquireBlockingRetryWithPersistingStoreInterface ()
80
80
{
81
81
$ key = new Key (uniqid (__METHOD__ , true ));
82
- $ store = $ this ->getMockBuilder (PersistingStoreInterface::class)-> getMock ( );
82
+ $ store = $ this ->createMock (PersistingStoreInterface::class);
83
83
$ lock = new Lock ($ key , $ store );
84
84
85
85
$ store
You can’t perform that action at this time.
0 commit comments