Skip to content

Commit 76826c7

Browse files
committed
Fix $message access
1 parent faa7c1b commit 76826c7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/include/bundledLibsTest.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ protected function setUp(): void {
2121
'string'
2222
)
2323
);
24-
$this->$message = new XML_RPC_Message(
24+
$this->message = new XML_RPC_Message(
2525
'weblogUpdates.ping',
2626
$args
2727
);
28-
$this->$message->createPayload();
28+
$this->message->createPayload();
2929
}
3030

3131
#[Test]
@@ -44,7 +44,7 @@ public function test_serendipity_xml_rpc_message()
4444
</params>\r
4545
</methodCall>\r
4646
";
47-
$this->assertEquals($expected, $this->$message->payload);
47+
$this->assertEquals($expected, $this->message->payload);
4848
}
4949

5050
#[Test]
@@ -58,15 +58,15 @@ public function test_serendipity_xml_rpc_response_valid()
5858
</params>
5959
</methodResponse>";
6060

61-
$xmlrpc_result = $this->$message->parseResponse($example_response);
61+
$xmlrpc_result = $this->message->parseResponse($example_response);
6262
$this->assertEquals($example_response, $xmlrpc_result->serialize());
6363
}
6464
#[Test]
6565
public function test_serendipity_xml_rpc_response_invalid()
6666
{
6767
$example_response = "some non-xml response";
6868

69-
$xmlrpc_result = $this->$message->parseResponse($example_response);
69+
$xmlrpc_result = $this->message->parseResponse($example_response);
7070
$this->assertEquals(2, $xmlrpc_result->faultCode());
7171
}
7272

0 commit comments

Comments
 (0)