Code Duplication    Length = 10-11 lines in 2 locations

tests/DeCaptchaAbstractTest.php 2 locations

@@ 14-23 (lines=10) @@
11
        return $abstract;
12
    }
13
14
    public function testGetBaseUrl()
15
    {
16
        $abstract = $this->newInstance();
17
        $getBaseUrlCaller = function () {
18
            return $this->getBaseUrl();
19
        };
20
        $abstract->domain = 'domain';
21
        $bound = $getBaseUrlCaller->bindTo($abstract, $abstract);
22
        $this->assertEquals('http://domain/', $bound());
23
    }
24
25
    public function testSetApiKey()
26
    {
@@ 154-164 (lines=11) @@
151
        $this->assertEquals(null, $bound(0));
152
    }
153
154
    public function testGetInUrl()
155
    {
156
        $abstract = $this->newInstance();
157
        $getInUrlCaller = function () {
158
            return $this->getInUrl();
159
        };
160
        $abstract->domain = 'domain';
161
        $abstract->setApiKey('123456');
162
        $bound = $getInUrlCaller->bindTo($abstract, $abstract);
163
        $this->assertEquals('http://domain/in.php', $bound());
164
    }
165
166
    /**
167
     * @expectedException \jumper423\decaptcha\core\DeCaptchaErrors