@@ -50,7 +50,7 @@ public function testAddFailsToSetKey(): void
5050 {
5151 $ this ->client ->expects (self ::atLeastOnce ())
5252 ->method ('set ' )
53- ->with ('lock_test ' , self ::isType ('string ' ), 'PX ' , 3500 , 'NX ' )
53+ ->with ('php-malkusch-lock:test ' , self ::isType ('string ' ), 'PX ' , 3500 , 'NX ' )
5454 ->willReturn (null );
5555
5656 $ this ->logger ->expects (self ::never ())
@@ -72,7 +72,7 @@ public function testAddErrors(): void
7272 {
7373 $ this ->client ->expects (self ::atLeastOnce ())
7474 ->method ('set ' )
75- ->with ('lock_test ' , self ::isType ('string ' ), 'PX ' , 3500 , 'NX ' )
75+ ->with ('php-malkusch-lock:test ' , self ::isType ('string ' ), 'PX ' , 3500 , 'NX ' )
7676 ->willThrowException ($ this ->createMock (PredisException::class));
7777
7878 $ this ->logger ->expects (self ::once ())
@@ -92,12 +92,12 @@ public function testWorksNormally(): void
9292 {
9393 $ this ->client ->expects (self ::atLeastOnce ())
9494 ->method ('set ' )
95- ->with ('lock_test ' , self ::isType ('string ' ), 'PX ' , 3500 , 'NX ' )
95+ ->with ('php-malkusch-lock:test ' , self ::isType ('string ' ), 'PX ' , 3500 , 'NX ' )
9696 ->willReturnSelf ();
9797
9898 $ this ->client ->expects (self ::once ())
9999 ->method ('eval ' )
100- ->with (self ::anything (), 1 , 'lock_test ' , self ::isType ('string ' ))
100+ ->with (self ::anything (), 1 , 'php-malkusch-lock:test ' , self ::isType ('string ' ))
101101 ->willReturn (true );
102102
103103 $ executed = false ;
@@ -116,12 +116,12 @@ public function testEvalScriptFails(): void
116116 {
117117 $ this ->client ->expects (self ::atLeastOnce ())
118118 ->method ('set ' )
119- ->with ('lock_test ' , self ::isType ('string ' ), 'PX ' , 3500 , 'NX ' )
119+ ->with ('php-malkusch-lock:test ' , self ::isType ('string ' ), 'PX ' , 3500 , 'NX ' )
120120 ->willReturnSelf ();
121121
122122 $ this ->client ->expects (self ::once ())
123123 ->method ('eval ' )
124- ->with (self ::anything (), 1 , 'lock_test ' , self ::isType ('string ' ))
124+ ->with (self ::anything (), 1 , 'php-malkusch-lock:test ' , self ::isType ('string ' ))
125125 ->willThrowException ($ this ->createMock (PredisException::class));
126126
127127 $ this ->logger ->expects (self ::once ())
0 commit comments