public function testControl() { $form = new Form(); $recaptcha = $form->addRecaptcha('recaptcha'); $recaptcha->setApiKey('api'); $recaptcha->setSecretKey('secret'); $this->assertSame('api', $recaptcha->getApiKey()); $this->assertNotEmpty($recaptcha->getControl()); }