Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'hotfix/3025' into develop

Forward port #3025
  • Loading branch information...
commit 10ad838bb4cfd688765ea163a51ed7a6efd4cb02 2 parents 8347c5e + dcbdd69
@weierophinney weierophinney authored
View
3  library/Zend/Form/View/Helper/Captcha/AbstractWord.php
@@ -130,9 +130,8 @@ protected function renderCaptchaInputs(ElementInterface $element)
$hidden = $this->renderCaptchaHidden($captcha, $attributes);
$input = $this->renderCaptchaInput($captcha, $attributes);
- $separator = $this->getSeparator();
- return $hidden . $separator . $input;
+ return $hidden . $input;
}
/**
View
9 tests/ZendTest/Form/View/Helper/Captcha/DumbTest.php
@@ -92,4 +92,13 @@ public function testSetSeparator()
$this->assertEquals('-', $this->helper->getSeparator());
}
+
+ public function testRenderSeparatorOneTimeAfterText()
+ {
+ $element = $this->getElement();
+ $this->helper->setSeparator('<br />');
+ $markup = $this->helper->render($element);
+ $this->assertContains($this->captcha->getLabel() . ' <b>' . strrev($this->captcha->getWord()) . '</b>' . $this->helper->getSeparator() . '<input name="foo[id]" type="hidden"', $markup);
+ $this->assertNotContains($this->helper->getSeparator() . '<input name="foo[input]" type="text"', $markup);
+ }
}
Please sign in to comment.
Something went wrong with that request. Please try again.