public function testGet() { $redis = M::mock(Redis::class); $redis->shouldReceive('mget')->with(['a', 'b', 'c'])->andReturn([1, "null", '[]']); $cache = new RedisCache($redis); $result = $cache->get(['a', 'b', 'c']); $this->assertEquals(['a' => 1, 'c' => []], $result); }