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