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