@@ -62,7 +62,7 @@ public function testAddFailsToSetKey(): void
62
62
{
63
63
$ this ->client ->expects (self ::atLeastOnce ())
64
64
->method ('set ' )
65
- ->with ('php-malkusch-lock:test ' , self ::isType ('string ' ), 'PX ' , 3500 , 'NX ' )
65
+ ->with ('lock_test ' , self ::isType ('string ' ), 'PX ' , 3500 , 'NX ' )
66
66
->willReturn (null );
67
67
68
68
$ this ->logger ->expects (self ::never ())
@@ -84,7 +84,7 @@ public function testAddErrors(): void
84
84
{
85
85
$ this ->client ->expects (self ::atLeastOnce ())
86
86
->method ('set ' )
87
- ->with ('php-malkusch-lock:test ' , self ::isType ('string ' ), 'PX ' , 3500 , 'NX ' )
87
+ ->with ('lock_test ' , self ::isType ('string ' ), 'PX ' , 3500 , 'NX ' )
88
88
->willThrowException ($ this ->createMock (PredisException::class));
89
89
90
90
$ this ->logger ->expects (self ::once ())
@@ -104,12 +104,12 @@ public function testWorksNormally(): void
104
104
{
105
105
$ this ->client ->expects (self ::atLeastOnce ())
106
106
->method ('set ' )
107
- ->with ('php-malkusch-lock:test ' , self ::isType ('string ' ), 'PX ' , 3500 , 'NX ' )
107
+ ->with ('lock_test ' , self ::isType ('string ' ), 'PX ' , 3500 , 'NX ' )
108
108
->willReturnSelf ();
109
109
110
110
$ this ->client ->expects (self ::once ())
111
111
->method ('eval ' )
112
- ->with (self ::anything (), 1 , 'php-malkusch-lock:test ' , self ::isType ('string ' ))
112
+ ->with (self ::anything (), 1 , 'lock_test ' , self ::isType ('string ' ))
113
113
->willReturn (true );
114
114
115
115
$ executed = false ;
@@ -128,12 +128,12 @@ public function testEvalScriptFails(): void
128
128
{
129
129
$ this ->client ->expects (self ::atLeastOnce ())
130
130
->method ('set ' )
131
- ->with ('php-malkusch-lock:test ' , self ::isType ('string ' ), 'PX ' , 3500 , 'NX ' )
131
+ ->with ('lock_test ' , self ::isType ('string ' ), 'PX ' , 3500 , 'NX ' )
132
132
->willReturnSelf ();
133
133
134
134
$ this ->client ->expects (self ::once ())
135
135
->method ('eval ' )
136
- ->with (self ::anything (), 1 , 'php-malkusch-lock:test ' , self ::isType ('string ' ))
136
+ ->with (self ::anything (), 1 , 'lock_test ' , self ::isType ('string ' ))
137
137
->willThrowException ($ this ->createMock (PredisException::class));
138
138
139
139
$ this ->logger ->expects (self ::once ())
0 commit comments