Пример #1
0
 public function testGetSetDoctype()
 {
     $view = new View();
     $this->assertEquals('<!DOCTYPE html>', $view->getDoctype());
     $view->setDoctype(View::DOCTYPE_HTML4_01_STRICT);
     $doctype = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">';
     $this->assertEquals($doctype, $view->getDoctype());
 }