Пример #1
0
 public function testDocType()
 {
     $head = new \r8\HTML\Head();
     $this->assertEquals(\r8\HTML\DocType::NONE(), $head->getDocType());
     $doctype = \r8\HTML\DocType::HTML5();
     $this->assertSame($head, $head->setDocType($doctype));
     $this->assertSame($doctype, $head->getDocType());
 }
Пример #2
0
 /**
  * Constructor...
  */
 public function __construct()
 {
     $this->docType = \r8\HTML\DocType::NONE();
 }