/**
  * Renders the HTML response text
  *
  * @return string
  */
 private function _getDisplay()
 {
     // The header may contain nothing at all,
     // if its content was already rendered
     // and, in this case, the header will be
     // in the content part of the request
     $retval = $this->_header->getDisplay();
     $retval .= $this->_HTML;
     $retval .= $this->_footer->getDisplay();
     return $retval;
 }
Esempio n. 2
0
 /**
  * Test for minimal footer
  *
  * @return void
  */
 public function testMinimal()
 {
     $footer = new PMA_Footer();
     $footer->setMinimal();
     $this->assertEquals('</div></body></html>', $footer->getDisplay());
 }
Esempio n. 3
0
 /**
  * Test for displaying footer
  *
  * @return void
  */
 public function testDisplay()
 {
     $footer = new PMA_Footer();
     $this->assertContains(
         'Open new phpMyAdmin window',
         $footer->getDisplay()
     );
 }