Code Duplication    Length = 8-8 lines in 2 locations

Tests/Authenticate/HashHmacTest.php 2 locations

@@ 78-85 (lines=8) @@
75
        $this->assertEquals($expected, $actual);
76
    }
77
78
    public function testVerifyHashWrongKey()
79
    {
80
81
        $this->setExpectedException('Exception');
82
        $hash1 = hash_hmac($this->algo, json_encode($this->data), 'key');
83
        $hash2 = hash_hmac($this->algo, json_encode($this->data), 'key2');
84
        $this->hmac->verify($hash1, $hash2);
85
    }
86
87
    public function testVerifyHashNotString()
88
    {
@@ 95-102 (lines=8) @@
92
        $this->hmac->verify($hash1, $hash2);
93
    }
94
95
    public function testVerifyHashWrongData()
96
    {
97
        $this->setExpectedException('Exception');
98
        $data = md5('someOtherStuff');
99
        $hash1 = hash_hmac($this->algo, json_encode($this->data), 'key');
100
        $hash2 = hash_hmac($this->algo, $data, 'key');
101
        $this->hmac->verify($hash1, $hash2);
102
    }
103
104
    public function testGetPrivateKey()
105
    {