| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | public function testRecognizeBalanceError2() |
||
| 24 | { |
||
| 25 | $captcha = new \jumper423\decaptcha\services\TwoCaptcha([ |
||
| 26 | \jumper423\decaptcha\services\TwoCaptcha::PARAM_SPEC_API_KEY => '200a1ed2b6ca001d8171c655658086ed', |
||
| 27 | ]); |
||
| 28 | $captcha->setErrorLang(\jumper423\decaptcha\core\DeCaptchaErrors::LANG_RU); |
||
| 29 | if ($captcha->recognize(__DIR__ . '/data/Captcha.jpg')) { |
||
| 30 | $this->assertEquals('11111111111111', $captcha->getCode()); |
||
| 31 | } else { |
||
| 32 | $this->assertEquals('Нулевой либо отрицательный баланс', $captcha->getError()); |
||
| 33 | } |
||
| 34 | } |
||
| 35 | } |
||
| 36 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.