@@ -50,7 +50,7 @@ public function testAddFailsToSetKey(): void
50
50
{
51
51
$ this ->client ->expects (self ::atLeastOnce ())
52
52
->method ('set ' )
53
- ->with ('lock_test ' , self ::isType ('string ' ), 'PX ' , 3500 , 'NX ' )
53
+ ->with ('php-malkusch-lock:test ' , self ::isType ('string ' ), 'PX ' , 3500 , 'NX ' )
54
54
->willReturn (null );
55
55
56
56
$ this ->logger ->expects (self ::never ())
@@ -72,7 +72,7 @@ public function testAddErrors(): void
72
72
{
73
73
$ this ->client ->expects (self ::atLeastOnce ())
74
74
->method ('set ' )
75
- ->with ('lock_test ' , self ::isType ('string ' ), 'PX ' , 3500 , 'NX ' )
75
+ ->with ('php-malkusch-lock:test ' , self ::isType ('string ' ), 'PX ' , 3500 , 'NX ' )
76
76
->willThrowException ($ this ->createMock (PredisException::class));
77
77
78
78
$ this ->logger ->expects (self ::once ())
@@ -92,12 +92,12 @@ public function testWorksNormally(): void
92
92
{
93
93
$ this ->client ->expects (self ::atLeastOnce ())
94
94
->method ('set ' )
95
- ->with ('lock_test ' , self ::isType ('string ' ), 'PX ' , 3500 , 'NX ' )
95
+ ->with ('php-malkusch-lock:test ' , self ::isType ('string ' ), 'PX ' , 3500 , 'NX ' )
96
96
->willReturnSelf ();
97
97
98
98
$ this ->client ->expects (self ::once ())
99
99
->method ('eval ' )
100
- ->with (self ::anything (), 1 , 'lock_test ' , self ::isType ('string ' ))
100
+ ->with (self ::anything (), 1 , 'php-malkusch-lock:test ' , self ::isType ('string ' ))
101
101
->willReturn (true );
102
102
103
103
$ executed = false ;
@@ -116,12 +116,12 @@ public function testEvalScriptFails(): void
116
116
{
117
117
$ this ->client ->expects (self ::atLeastOnce ())
118
118
->method ('set ' )
119
- ->with ('lock_test ' , self ::isType ('string ' ), 'PX ' , 3500 , 'NX ' )
119
+ ->with ('php-malkusch-lock:test ' , self ::isType ('string ' ), 'PX ' , 3500 , 'NX ' )
120
120
->willReturnSelf ();
121
121
122
122
$ this ->client ->expects (self ::once ())
123
123
->method ('eval ' )
124
- ->with (self ::anything (), 1 , 'lock_test ' , self ::isType ('string ' ))
124
+ ->with (self ::anything (), 1 , 'php-malkusch-lock:test ' , self ::isType ('string ' ))
125
125
->willThrowException ($ this ->createMock (PredisException::class));
126
126
127
127
$ this ->logger ->expects (self ::once ())
0 commit comments