/** * @issue ZF-7722 */ public function testCharset() { $view = new View(); $view->plugin('doctype')->direct('HTML5'); $view->plugin('headMeta')->setCharset('utf-8'); $this->assertEquals('<meta charset="utf-8">', $view->plugin('headMeta')->toString()); $view->plugin('doctype')->direct('XHTML5'); $this->assertEquals('<meta charset="utf-8"/>', $view->plugin('headMeta')->toString()); }
/** * @group ZF-11483 */ public function testImageTagRenderedProperlyBasedUponDoctype() { $this->testCaptchaIsRendered(); $view = new View(); $view->plugin('doctype')->setDoctype('XHTML1_STRICT'); $this->assertRegExp('#/>$#', $this->captcha->render($view)); $view->plugin('doctype')->setDoctype('HTML4_STRICT'); $this->assertRegExp('#[^/]>$#', $this->captcha->render($view)); }