Línea 38... |
Línea 38... |
38 |
* This may seem silly, sure it is. But it's a good way to verify
|
38 |
* This may seem silly, sure it is. But it's a good way to verify
|
39 |
* that the Moodle PSR-4 autoloader is working ok.
|
39 |
* that the Moodle PSR-4 autoloader is working ok.
|
40 |
*
|
40 |
*
|
41 |
* @coversNothing
|
41 |
* @coversNothing
|
42 |
*/
|
42 |
*/
|
43 |
public function test_phpxmlrpc_availability() {
|
43 |
public function test_phpxmlrpc_availability(): void {
|
44 |
// All these classes need to be at hand.
|
44 |
// All these classes need to be at hand.
|
45 |
$this->assertInstanceOf(\PhpXmlRpc\Client::class, new Client('https://example.com'));
|
45 |
$this->assertInstanceOf(\PhpXmlRpc\Client::class, new Client('https://example.com'));
|
46 |
$this->assertInstanceOf(\PhpXmlRpc\Request::class, new Request(''));
|
46 |
$this->assertInstanceOf(\PhpXmlRpc\Request::class, new Request(''));
|
47 |
$this->assertInstanceOf(\PhpXmlRpc\Response::class, new Response(''));
|
47 |
$this->assertInstanceOf(\PhpXmlRpc\Response::class, new Response(''));
|
48 |
$this->assertInstanceOf(\PhpXmlRpc\Server::class, new Server());
|
48 |
$this->assertInstanceOf(\PhpXmlRpc\Server::class, new Server());
|