Skip to content
Snippets Groups Projects
Commit df08777d authored by Michael Hamann's avatar Michael Hamann
Browse files

Adapt tests for PHP 5.4

Call-time pass-by-reference is a fatal syntax error in PHP 5.4 and
stdClass objects can't be instantiated automatically anymore.
parent 8cb3706d
No related branches found
No related tags found
No related merge requests found
......@@ -276,8 +276,11 @@ class JSON_Object_TestCase extends DokuWikiTest {
$this->obj_j = '{"a_string":"\"he\":llo}:{world","an_array":[1,2,3],"obj":{"a_number":123}}';
$this->obj1 = new stdClass();
$this->obj1->car1 = new stdClass();
$this->obj1->car1->color = 'tan';
$this->obj1->car1->model = 'sedan';
$this->obj1->car2 = new stdClass();
$this->obj1->car2->color = 'red';
$this->obj1->car2->model = 'sports';
$this->obj1_j = '{"car1":{"color":"tan","model":"sedan"},"car2":{"color":"red","model":"sports"}}';
......
......@@ -317,7 +317,7 @@ class remote_test extends DokuWikiTest {
function test_pluginCallCustomPath() {
global $EVENT_HANDLER;
$EVENT_HANDLER->register_hook('RPC_CALL_ADD', 'BEFORE', &$this, 'pluginCallCustomPathRegister');
$EVENT_HANDLER->register_hook('RPC_CALL_ADD', 'BEFORE', $this, 'pluginCallCustomPathRegister');
$remoteApi = new RemoteAPI();
$result = $remoteApi->call('custom.path');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment