public function testStringRepresentationReflectsDoctype() { $this->view->plugin('doctype')->__invoke('HTML4_STRICT'); $this->helper->__invoke('some content', 'foo'); $test = $this->helper->toString(); $this->assertNotContains('/>', $test); $this->assertContains('some content', $test); $this->assertContains('foo', $test); }
/** * @group ZF-9743 */ public function testPropertyIsNotSupportedByDefaultDoctype() { try { $this->helper->__invoke('foo', 'og:title', 'property'); $this->fail('meta property attribute should not be supported on default doctype'); } catch (ViewException $e) { $this->assertContains('Invalid value passed', $e->getMessage()); } }