Exemplo n.º 1
0
 /**
  * {@inheritDoc}
  */
 public function incorrectlySolved(CaptchaSolutionInterface $solution)
 {
     if (!$solution instanceof DeathByCaptchaCaptchaSolution) {
         return false;
     }
     $this->httpClient->post('/api/captcha/' . $solution->getCaptchaId() . '/report', ['body' => ['username' => $this->credentials->getUsername(), 'password' => $this->credentials->getPassword()]]);
     return true;
 }
 /**
  * @test
  */
 public function getUsername()
 {
     $this->assertEquals('user', $this->credentials->getUsername());
 }