Code Duplication    Length = 13-13 lines in 2 locations

Tests/RedisLockStrategyTest.php 2 locations

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