Example #1
0
 /**
  *  @test
  */
 public function it_parses_empty_responses_as_unknown_error()
 {
     $input = null;
     $response = new Response($input);
     $this->assertFalse($response->isSuccess());
     $this->assertEquals(['unknown'], $response->getErrorCodes());
     $this->assertEquals([trans('recaptcha::recaptcha.error-codes.unknown')], $response->getErrorMessages());
 }