Code Duplication    Length = 9-9 lines in 2 locations

tests/DeCaptchaAbstractTest.php 2 locations

@@ 89-97 (lines=9) @@
86
     * @expectedException \jumper423\decaptcha\core\DeCaptchaErrors
87
     * @expectedExceptionCode 16
88
     */
89
    public function testGetFilePathErrorFileNotFound()
90
    {
91
        $abstract = $this->newInstance();
92
        $getFilePathCaller = function ($val) {
93
            return $this->getFilePath($val);
94
        };
95
        $bound = $getFilePathCaller->bindTo($abstract, $abstract);
96
        $bound(__DIR__.'/data/Captcha1.jpg');
97
    }
98
99
    /**
100
     * @expectedException \jumper423\decaptcha\core\DeCaptchaErrors
@@ 104-112 (lines=9) @@
101
     * @expectedExceptionMessage Файл не загрузился: https://upload.wikimedia.org/wikipedia/commons/6/69/Captcha46.jpg123
102
     * @expectedExceptionCode 15
103
     */
104
    public function testGetFilePathErrorFileIsNotLoaded()
105
    {
106
        $abstract = $this->newInstance();
107
        $getFilePathCaller = function ($val) {
108
            return $this->getFilePath($val);
109
        };
110
        $bound = $getFilePathCaller->bindTo($abstract, $abstract);
111
        $bound('https://upload.wikimedia.org/wikipedia/commons/6/69/Captcha46.jpg123');
112
    }
113
114
    /**
115
     * @expectedException \jumper423\decaptcha\core\DeCaptchaErrors