Code Duplication    Length = 10-10 lines in 2 locations

Tests/Handler/CommandLockHandlerTest.php 2 locations

@@ 56-65 (lines=10) @@
53
        $this->assertTrue($this->handler->isLocked($channel));
54
    }
55
56
    public function testLock()
57
    {
58
        $channel = 'foo';
59
        $lock = Phake::mock('Itkg\DelayEventBundle\Model\Lock');
60
        Phake::when($this->manager)->getLock($channel)->thenReturn($lock);
61
62
        $this->handler->lock($channel);
63
        Phake::verify($lock)->setCommandLocked(true);
64
        Phake::verify($this->manager)->save($lock);
65
    }
66
67
    public function testRelease()
68
    {
@@ 67-76 (lines=10) @@
64
        Phake::verify($this->manager)->save($lock);
65
    }
66
67
    public function testRelease()
68
    {
69
        $channel = 'foo';
70
        $lock = Phake::mock('Itkg\DelayEventBundle\Model\Lock');
71
        Phake::when($this->manager)->getLock($channel)->thenReturn($lock);
72
73
        $this->handler->release($channel);
74
        Phake::verify($lock)->setCommandLocked(false);
75
        Phake::verify($this->manager)->save($lock);
76
    }
77
}
78