File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 1212use NinjaMutex \Lock \PhpRedisLock ;
1313use NinjaMutex \Lock \PredisRedisLock ;
1414use Predis \Client as PredisClient ;
15+ use Redis ;
1516
1617class MutexTest extends TestCase
1718{
@@ -93,6 +94,15 @@ public function it_has_get_predis_client_method_which_always_returns_an_instance
9394 $ this ->assertInstanceOf (PredisClient::class, $ mutex ->getPredisClient ());
9495 }
9596
97+ /** @test */
98+ public function it_has_get_phpredis_client_method_which_always_returns_an_instance_of_redis_class ()
99+ {
100+ config (['database.redis.client ' => 'phpredis ' ]);
101+
102+ $ mutex = new Mutex ($ this ->command );
103+ $ this ->assertInstanceOf (Redis::class, $ mutex ->getPhpRedisClient ());
104+ }
105+
96106 /** @test */
97107 public function it_supports_memcached_strategy ()
98108 {
You can’t perform that action at this time.
0 commit comments