protected function PostTest::assertCommonOptions in reCAPTCHA 6.2
Same name and namespace in other branches
- 7.2 recaptcha-php/tests/ReCaptcha/RequestMethod/PostTest.php \ReCaptcha\RequestMethod\PostTest::assertCommonOptions()
2 calls to PostTest::assertCommonOptions()
- PostTest::httpContextOptionsCallback in recaptcha-php/
tests/ ReCaptcha/ RequestMethod/ PostTest.php - PostTest::sslContextOptionsCallback in recaptcha-php/
tests/ ReCaptcha/ RequestMethod/ PostTest.php
File
- recaptcha-php/
tests/ ReCaptcha/ RequestMethod/ PostTest.php, line 102
Class
Namespace
ReCaptcha\RequestMethodCode
protected function assertCommonOptions(array $args) {
$this
->assertCount(3, $args);
$this
->assertStringStartsWith("https://www.google.com/", $args[0]);
$this
->assertFalse($args[1]);
$this
->assertTrue(is_resource($args[2]), "The context options should be a resource");
}