Skip to content

Commit

Permalink
move IXR XML RPC to composer dependency #1970
Browse files Browse the repository at this point in the history
This is a monky patched version of kissyfrot/php-ixr until my PR has
been accepted upstream.

Plugins using the XML RPC client may need adjustments.
  • Loading branch information
splitbrain committed Sep 16, 2021
1 parent dc2ffed commit 7f8f245
Show file tree
Hide file tree
Showing 34 changed files with 2,323 additions and 1,803 deletions.
6 changes: 3 additions & 3 deletions _test/tests/inc/XmlRpcServer.test.php
Expand Up @@ -33,13 +33,13 @@ function testDateFormat()
$pageName = ":wiki:dokuwiki";
$file = wikiFN($pageName);
$timestamp = filemtime($file);
$ixrModifiedTime = (new DateTime('@' . $timestamp))->format(IXR_Date::XMLRPC_ISO8601);
$ixrModifiedTime = (new DateTime('@' . $timestamp))->format(DateTime::ATOM);

$request = <<<EOD
<?xml version="1.0"?>
<methodCall>
<methodName>wiki.getPageInfo</methodName>
<param>
<param>
<value>
<string>$pageName</string>
</value>
Expand All @@ -64,6 +64,6 @@ function testDateFormat()
EOD;

$this->server->serve($request);
$this->assertEquals(trim($expected), trim($this->server->output));
$this->assertXmlStringEqualsXmlString(trim($expected), trim($this->server->output));
}
}
44 changes: 0 additions & 44 deletions _test/tests/inc/ixr_library_date.test.php

This file was deleted.

134 changes: 0 additions & 134 deletions _test/tests/inc/ixr_library_ixr_message.test.php

This file was deleted.

3 changes: 2 additions & 1 deletion composer.json
Expand Up @@ -15,7 +15,8 @@
"aziraphale/email-address-validator": "^2",
"marcusschwarz/lesserphp": "^0.5.1",
"splitbrain/php-cli": "^1.1",
"splitbrain/slika": "^1.0"
"splitbrain/slika": "^1.0",
"kissifrot/php-ixr": "^1.8"
},
"config": {
"platform": {
Expand Down
51 changes: 49 additions & 2 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7f8f245

Please sign in to comment.