protected function printLayout($content) { ?> <html> <head> <title><?php echo $this->getTitle(); ?> </title> <?php echo LayoutModule::getHeadItemsAsHtml(); ?> <?php echo ResourceLoader::getResourceInjectionHtml(); ?> <?php $this->printHead(); ?> </head> <body> <?php $this->printTop(); echo LayoutModule::getBodyItemsAsHtml(); $this->printPageHeading(); $this->printContent($content); $this->printTail(); ?> </body> </html> <?php }
public function testBodyItems() { LayoutModule::addBodyItem("this is some html"); LayoutModule::addBodyItem("this is more html"); $head = LayoutModule::getBodyItemsAsHtml(); $this->assertEquals("this is some html\nthis is more html", $head); }