/** * 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()); }