Ejemplo n.º 1
0
 /**
  * @testdox  JLayoutBase->renderDebugMessages() returns string of messages separated by newline character.
  *
  * @since   3.3.7
  */
 public function testRenderDebugMessageReturnsStringOfMessagesSeparatedByNewlineCharacter()
 {
     $this->layoutBase->addDebugMessage('Debug message 1');
     $this->assertEquals("Debug message 1", $this->layoutBase->renderDebugMessages());
     $this->layoutBase->addDebugMessage('Debug message 2');
     $this->assertEquals("Debug message 1\nDebug message 2", $this->layoutBase->renderDebugMessages());
 }
Ejemplo n.º 2
0
 /**
  * Render the list of debug messages
  *
  * @return  string  Output text/HTML code
  *
  * @since   3.3
  */
 public function renderDebugMessages()
 {
     if ($this->options->get('debug', false)) {
         return "<pre>" . parent::renderDebugMessages() . "</pre>";
     }
     return;
 }