public function __construct($application) { $this->application = $application; $sm = $this->application->getServiceManager(); $em = $this->application->getEventManager(); $this->view = $sm->get('ViewRenderer'); $this->view->doctype('HTML5'); $em->trigger('boostrap', $this->application, array(), array($this, 'onDispatch')); return $this; }
/** * Test if doctype is HTML */ public function testGravatarHtmlDoctype() { $object = new Gravatar(); $view = new View(); $view->doctype()->setDoctype(strtoupper("HTML5")); $object->setView($view); $this->assertRegExp('/[^\\/]>$/', $this->helper->__invoke('*****@*****.**')->__toString()); }
public function testCsrfHtmlDoctype() { $object = new FormCsrf(); $view = new View(); $view->doctype()->setDoctype(strtoupper("HTML5")); $object->setView($view); $this->assertRegExp('/[^\\/]>$/', $object->__invoke()); }