Code Duplication    Length = 9-9 lines in 3 locations

tests/DeCaptchaAbstractTest.php 3 locations

@@ 82-90 (lines=9) @@
79
     * @expectedException \jumper423\decaptcha\core\DeCaptchaErrors
80
     * @expectedExceptionCode 16
81
     */
82
    public function testGetFilePathErrorFileNotFound()
83
    {
84
        $abstract = $this->newInstance();
85
        $getFilePathCaller = function ($val) {
86
            return $this->getFilePath($val);
87
        };
88
        $bound = $getFilePathCaller->bindTo($abstract, $abstract);
89
        $bound(__DIR__ . '/data/Captcha1.jpg');
90
    }
91
92
    /**
93
     * @expectedException \jumper423\decaptcha\core\DeCaptchaErrors
@@ 97-105 (lines=9) @@
94
     * @expectedExceptionMessage Файл не загрузился: https://upload.wikimedia.org/wikipedia/commons/6/69/Captcha46.jpg123
95
     * @expectedExceptionCode 15
96
     */
97
    public function testGetFilePathErrorFileIsNotLoaded()
98
    {
99
        $abstract = $this->newInstance();
100
        $getFilePathCaller = function ($val) {
101
            return $this->getFilePath($val);
102
        };
103
        $bound = $getFilePathCaller->bindTo($abstract, $abstract);
104
        $bound('https://upload.wikimedia.org/wikipedia/commons/6/69/Captcha46.jpg123');
105
    }
106
107
    public function testGetResponse()
108
    {
@@ 170-178 (lines=9) @@
167
     * @expectedException \jumper423\decaptcha\core\DeCaptchaErrors
168
     * @expectedExceptionCode 4
169
     */
170
    public function testIsError()
171
    {
172
        $abstract = $this->newInstance();
173
        $isErrorCaller = function ($val) {
174
            return $this->isError($val);
175
        };
176
        $bound = $isErrorCaller->bindTo($abstract, $abstract);
177
        $bound(\jumper423\decaptcha\core\DeCaptchaErrors::ERROR_IP_NOT_ALLOWED);
178
    }
179
180
    public function testIsErrorNot()
181
    {