@@ -324,7 +324,7 @@ public function haveInRedis($type, $key, $value)
324324 public function dontSeeInRedis ($ key , $ value = null )
325325 {
326326 $ this ->assertFalse (
327- $ this ->checkKeyExists ($ key , $ value ),
327+ ( bool ) $ this ->checkKeyExists ($ key , $ value ),
328328 "The key \"$ key \" exists " . ($ value ? ' and its value matches the one provided ' : '' )
329329 );
330330 }
@@ -361,7 +361,7 @@ public function dontSeeInRedis($key, $value = null)
361361 public function dontSeeRedisKeyContains ($ key , $ item , $ itemValue = null )
362362 {
363363 $ this ->assertFalse (
364- $ this ->checkKeyContains ($ key , $ item , $ itemValue ),
364+ ( bool ) $ this ->checkKeyContains ($ key , $ item , $ itemValue ),
365365 "The key \"$ key \" contains " . (
366366 is_null ($ itemValue )
367367 ? "\"$ item \""
@@ -397,7 +397,7 @@ public function dontSeeRedisKeyContains($key, $item, $itemValue = null)
397397 public function seeInRedis ($ key , $ value = null )
398398 {
399399 $ this ->assertTrue (
400- $ this ->checkKeyExists ($ key , $ value ),
400+ ( bool ) $ this ->checkKeyExists ($ key , $ value ),
401401 "Cannot find key \"$ key \"" . ($ value ? ' with the provided value ' : '' )
402402 );
403403 }
@@ -461,7 +461,7 @@ public function sendCommandToRedis($command)
461461 public function seeRedisKeyContains ($ key , $ item , $ itemValue = null )
462462 {
463463 $ this ->assertTrue (
464- $ this ->checkKeyContains ($ key , $ item , $ itemValue ),
464+ ( bool ) $ this ->checkKeyContains ($ key , $ item , $ itemValue ),
465465 "The key \"$ key \" does not contain " . (
466466 is_null ($ itemValue )
467467 ? "\"$ item \""
0 commit comments