function it_returns_the_recaptcha_html(Config $config, Encrypter $encrypter) { $site_key = '1234567890'; $config->getRecaptchaSiteKey()->willReturn($site_key); $html = (require __DIR__ . "/../../../src/Html/templates/recaptcha.php"); $this->html()->shouldReturn($html); }
/** * Get the max time to use. * * @return int */ private function getMaxTime() { if (isset($this->params['max_time'])) { return $this->params['max_time']; } return $this->config->getDefaultMaxTime(); }
function let(Config $config, Encrypter $encrypter) { $config->getDefaultMinTime()->willReturn(5); $config->getDefaultMaxTime()->willReturn(3600); $this->beConstructedWith($config, $encrypter); }