/**
* testCaptcha
*
* @param array $expect
*
* @dataProvider providerCaptcha
*
* @since 2.6.0
*/
public function testCaptcha($expect = array())
{
/* setup */
$form = new Html\Form($this->_registry, $this->_language);
$form->init();
$form->captcha($expect['type']);
/* actual */
$actual = $form->render();
/* compare */
$this->assertStringStartsWith($expect['prefix'], $actual);
$this->assertStringEndsWith($expect['suffix'], $actual);
}