From f6132cac7e534d26ae3189b09f55be3a06aa7beb Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Sat, 6 Jul 2024 11:12:53 +0200 Subject: Add class for representing XML-RPC payloads. --- tests/unit/XmlRpcTest.php | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 tests/unit/XmlRpcTest.php (limited to 'tests') diff --git a/tests/unit/XmlRpcTest.php b/tests/unit/XmlRpcTest.php new file mode 100644 index 0000000..c245917 --- /dev/null +++ b/tests/unit/XmlRpcTest.php @@ -0,0 +1,26 @@ +wp.getUsersBlogs' + . 'someuser' + . 'verysecretpassword'; + + $method = XmlRpcMethod::parse($payload); + + $this->assertEquals('wp.getUsersBlogs', $method->name); + $this->assertEquals(['someuser', 'verysecretpassword'], $method->params); + } +} -- cgit v1.2.3