|
@@ -17,7 +17,7 @@ discard block |
|
|
block discarded – undo |
|
17
|
17
|
]); |
|
18
|
18
|
$captcha->setErrorLang(\jumper423\decaptcha\core\DeCaptchaErrors::LANG_RU); |
|
19
|
19
|
$captcha->setCauseAnError(true); |
|
20
|
|
- $captcha->recognize(__DIR__.'/data/Captcha.jpg'); |
|
|
20
|
+ $captcha->recognize(__DIR__ . '/data/Captcha.jpg'); |
|
21
|
21
|
} |
|
22
|
22
|
|
|
23
|
23
|
public function testRecognizeBalanceError2() |
|
@@ -26,7 +26,7 @@ discard block |
|
|
block discarded – undo |
|
26
|
26
|
\jumper423\decaptcha\services\TwoCaptcha::PARAM_SPEC_API_KEY => '200a1ed2b6ca001d8171c655658086ed', |
|
27
|
27
|
]); |
|
28
|
28
|
$captcha->setErrorLang(\jumper423\decaptcha\core\DeCaptchaErrors::LANG_RU); |
|
29
|
|
- if ($captcha->recognize(__DIR__.'/data/Captcha.jpg')) { |
|
|
29
|
+ if ($captcha->recognize(__DIR__ . '/data/Captcha.jpg')) { |
|
30
|
30
|
$this->assertEquals('11111111111111', $captcha->getCode()); |
|
31
|
31
|
} else { |
|
32
|
32
|
$this->assertEquals('Нулевой либо отрицательный баланс', $captcha->getError()); |
Please login to merge, or discard this patch.