protected function PostTest::assertCommonOptions in reCAPTCHA 7.2
Same name and namespace in other branches
- 6.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 125
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');
}