/**
  * Set the contents of the document buffer
  *
  * @param   string  $content  The content to be set in the buffer.
  * @param   array   $options  Array of optional elements.
  *
  * @return  JDocument instance of $this to allow chaining
  *
  * @since   11.1
  */
 public function setBuffer($content, $options = array())
 {
     self::$_buffer = $content;
     return $this;
 }
Пример #2
0
 /**
  * Tears down the fixture, for example, closes a network connection.
  * This method is called after a test is executed.
  */
 protected function tearDown()
 {
     JDocument::$_buffer = null;
     parent::tearDown();
 }
Пример #3
0
 /**
  * Tears down the fixture, for example, closes a network connection.
  * This method is called after a test is executed.
  */
 protected function tearDown()
 {
     $this->restoreFactoryState();
     JDocument::$_buffer = null;
     parent::tearDown();
 }
 /**
  * Tears down the fixture, for example, closes a network connection.
  * This method is called after a test is executed.
  */
 protected function tearDown()
 {
     JDocument::$_buffer = null;
     unset($this->object);
     parent::tearDown();
 }