xref: /dokuwiki/_test/tests/Remote/Mock/XmlRpcServer.php (revision 5284332a209023c3be819ee4f7efe9327662651c)
1<?php
2
3namespace dokuwiki\test\Remote\Mock;
4
5class 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}
26