コード例 #1
0
ファイル: GravatarTest.php プロジェクト: rafalwrzeszcz/zf2
 /**
  * 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());
 }
コード例 #2
0
ファイル: FormCsrfTest.php プロジェクト: nevvermind/zf2
 public function testCsrfHtmlDoctype()
 {
     $object = new FormCsrf();
     $view = new View();
     $view->doctype()->setDoctype(strtoupper("HTML5"));
     $object->setView($view);
     $this->assertRegExp('/[^\\/]>$/', $object->__invoke());
 }