Ejemplo n.º 1
0
 public function addHeadersStr($arr)
 {
     foreach ($arr as $key => $str) {
         $header = new Header();
         $header->setContent($str);
         $this->addHeader($header);
     }
 }
Ejemplo n.º 2
0
 /**
  * @covers Rvi\Html\Layout\Header::toHtml&
  */
 public function testToHtml5()
 {
     $this->object->setContent("test content");
     $this->object->setHtmlStandard(Header::HTML_STANDARD_HTML5);
     $strHtml = $this->object->toHtml("alert(\"onload\");");
     $this->assertContains("<!DOCTYPE html>", $strHtml);
     $this->assertContains("<html", $strHtml);
     $this->assertContains("<title>", $strHtml);
     $this->assertContains("test content", $strHtml);
 }