|
|
@@ -76,7 +76,9 @@ class Zend_Form_Element_SelectTest extends PHPUnit_Framework_TestCase
|
|
|
public function getView()
|
|
|
{
|
|
|
require_once 'Zend/View.php';
|
|
|
- $view = new Zend_View();
|
|
|
+ $view = new Zend_View(array(
|
|
|
+ 'encoding' => 'UTF-8',
|
|
|
+ ));
|
|
|
$view->addHelperPath(dirname(__FILE__) . '/../../../../library/Zend/View/Helper');
|
|
|
return $view;
|
|
|
}
|
|
|
@@ -242,6 +244,16 @@ class Zend_Form_Element_SelectTest extends PHPUnit_Framework_TestCase
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
+ * @group ZF-8342
|
|
|
+ */
|
|
|
+ public function testUsingPoundSymbolInOptionLabelShouldRenderCorrectly()
|
|
|
+ {
|
|
|
+ $this->element->addMultiOption('1', '£' . number_format(1));
|
|
|
+ $html = $this->element->render($this->getView());
|
|
|
+ $this->assertContains('>£', $html);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
* Used by test methods susceptible to ZF-2794, marks a test as incomplete
|
|
|
*
|
|
|
* @link http://framework.zend.com/issues/browse/ZF-2794
|