Skip to content

Commit fe5f17c

Browse files
committed
Connection failure should return false
1 parent ab571c6 commit fe5f17c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/ReCaptcha/RequestMethod/PostTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function testConnectionFailureReturnsError()
8080

8181
public function connectionFailureResponse()
8282
{
83-
return '{"success": false, "error-codes": ["'.ReCaptcha::E_CONNECTION_FAILED.'"]}';
83+
return false;
8484
}
8585
public function overrideUrlOptions(array $args)
8686
{

0 commit comments

Comments
 (0)