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()); }
/** * Constructor... */ public function __construct() { $this->docType = \r8\HTML\DocType::NONE(); }