@@ -62,7 +62,7 @@ public function testAddFailsToSetKey(): void
6262 {
6363 $ this ->client ->expects (self ::atLeastOnce ())
6464 ->method ('set ' )
65- ->with ('php-malkusch-lock:test ' , self ::isType ('string ' ), 'PX ' , 3500 , 'NX ' )
65+ ->with ('lock_test ' , self ::isType ('string ' ), 'PX ' , 3500 , 'NX ' )
6666 ->willReturn (null );
6767
6868 $ this ->logger ->expects (self ::never ())
@@ -84,7 +84,7 @@ public function testAddErrors(): void
8484 {
8585 $ this ->client ->expects (self ::atLeastOnce ())
8686 ->method ('set ' )
87- ->with ('php-malkusch-lock:test ' , self ::isType ('string ' ), 'PX ' , 3500 , 'NX ' )
87+ ->with ('lock_test ' , self ::isType ('string ' ), 'PX ' , 3500 , 'NX ' )
8888 ->willThrowException ($ this ->createMock (PredisException::class));
8989
9090 $ this ->logger ->expects (self ::once ())
@@ -104,12 +104,12 @@ public function testWorksNormally(): void
104104 {
105105 $ this ->client ->expects (self ::atLeastOnce ())
106106 ->method ('set ' )
107- ->with ('php-malkusch-lock:test ' , self ::isType ('string ' ), 'PX ' , 3500 , 'NX ' )
107+ ->with ('lock_test ' , self ::isType ('string ' ), 'PX ' , 3500 , 'NX ' )
108108 ->willReturnSelf ();
109109
110110 $ this ->client ->expects (self ::once ())
111111 ->method ('eval ' )
112- ->with (self ::anything (), 1 , 'php-malkusch-lock:test ' , self ::isType ('string ' ))
112+ ->with (self ::anything (), 1 , 'lock_test ' , self ::isType ('string ' ))
113113 ->willReturn (true );
114114
115115 $ executed = false ;
@@ -128,12 +128,12 @@ public function testEvalScriptFails(): void
128128 {
129129 $ this ->client ->expects (self ::atLeastOnce ())
130130 ->method ('set ' )
131- ->with ('php-malkusch-lock:test ' , self ::isType ('string ' ), 'PX ' , 3500 , 'NX ' )
131+ ->with ('lock_test ' , self ::isType ('string ' ), 'PX ' , 3500 , 'NX ' )
132132 ->willReturnSelf ();
133133
134134 $ this ->client ->expects (self ::once ())
135135 ->method ('eval ' )
136- ->with (self ::anything (), 1 , 'php-malkusch-lock:test ' , self ::isType ('string ' ))
136+ ->with (self ::anything (), 1 , 'lock_test ' , self ::isType ('string ' ))
137137 ->willThrowException ($ this ->createMock (PredisException::class));
138138
139139 $ this ->logger ->expects (self ::once ())
0 commit comments