Code Duplication    Length = 9-9 lines in 2 locations

tests/DeCaptchaAbstractTest.php 2 locations

@@ 69-77 (lines=9) @@
66
     * @expectedException \jumper423\decaptcha\core\DeCaptchaErrors
67
     * @expectedExceptionCode 16
68
     */
69
    public function testGetFilePathErrorFileNotFound()
70
    {
71
        $abstract = $this->newInstance();
72
        $getFilePathCaller = function ($val) {
73
            return $this->getFilePath($val);
74
        };
75
        $bound = $getFilePathCaller->bindTo($abstract, $abstract);
76
        $bound(__DIR__.'/data/Captcha1.jpg');
77
    }
78
79
    /**
80
     * @expectedException \jumper423\decaptcha\core\DeCaptchaErrors
@@ 84-92 (lines=9) @@
81
     * @expectedExceptionMessage Файл не загрузился: https://upload.wikimedia.org/wikipedia/commons/6/69/Captcha46.jpg123
82
     * @expectedExceptionCode 15
83
     */
84
    public function testGetFilePathErrorFileIsNotLoaded()
85
    {
86
        $abstract = $this->newInstance();
87
        $getFilePathCaller = function ($val) {
88
            return $this->getFilePath($val);
89
        };
90
        $bound = $getFilePathCaller->bindTo($abstract, $abstract);
91
        $bound('https://upload.wikimedia.org/wikipedia/commons/6/69/Captcha46.jpg123');
92
    }
93
94
//    public function testGetResponse()
95
//    {