[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

/_test/tests/Remote/Mock/ -> XmlRpcServer.php (source)

   1  <?php
   2  
   3  namespace dokuwiki\test\Remote\Mock;
   4  
   5  class XmlRpcServer extends \dokuwiki\Remote\XmlRpcServer
   6  {
   7      public $output;
   8  
   9      /** @inheritdoc */
  10      public function __construct($wait = false)
  11      {
  12          parent::__construct($wait);
  13          $this->remote->getCoreMethods(new ApiCore()); // use the mock API core
  14      }
  15  
  16      /**
  17       * Make output available for testing
  18       *
  19       * @param string $xml
  20       * @return void
  21       */
  22      public function output($xml) {
  23          $this->output = $xml;
  24      }
  25  }