Code Duplication    Length = 12-14 lines in 2 locations

Tests/RedisLockStrategyTest.php 2 locations

@@ 151-164 (lines=14) @@
148
    /**
149
     * @test
150
     */
151
    public function shouldConnectAndDestroyALock()
152
    {
153
        $id = uniqid();
154
155
        $locker = $this->getLocker($id);
156
157
        $redis = $this->getRedisClient();
158
159
        $redis->set($id, 'testvalue');
160
161
        $locker->destroy();
162
163
        self::assertFalse($redis->exists($id));
164
    }
165
166
    /**
167
     * @test
@@ 169-180 (lines=12) @@
166
    /**
167
     * @test
168
     */
169
    public function shouldConnectAndDestroyANotExistingLock()
170
    {
171
        $id = uniqid();
172
173
        $locker = $this->getLocker($id);
174
175
        $redis = $this->getRedisClient();
176
177
        $locker->destroy();
178
179
        self::assertFalse($redis->exists($id));
180
    }
181
182
    protected function setUp()
183
    {