Code Duplication    Length = 13-13 lines in 2 locations

Tests/RedisLockStrategyTest.php 2 locations

@@ 115-127 (lines=13) @@
112
    /**
113
     * @test
114
     */
115
    public function shouldConnectAndAcquireALock()
116
    {
117
        $subject = uniqid();
118
119
        $mutex = sprintf('lock:mutex:%s', $subject);
120
121
        $locker = $this->getLocker($subject);
122
123
        $redis = $this->getRedisClient();
124
125
        self::assertTrue($locker->acquire());
126
127
        self::assertTrue($redis->exists($mutex));
128
    }
129
130
    /**
@@ 147-159 (lines=13) @@
144
    /**
145
     * @test
146
     */
147
    public function shouldConnectAndDestroyALock()
148
    {
149
        $subject = uniqid();
150
151
        $mutex = sprintf('lock:mutex:%s', $subject);
152
153
        $locker = $this->getLocker($subject);
154
155
        $redis = $this->getRedisClient();
156
157
        $locker->destroy();
158
159
        self::assertFalse($redis->exists($mutex));
160
    }
161
162
    /**