diff --git a/tests/UserApp/ClientEventTest.php b/tests/UserApp/ClientEventTest.php index c1ae35f..1b8b6c0 100644 --- a/tests/UserApp/ClientEventTest.php +++ b/tests/UserApp/ClientEventTest.php @@ -25,7 +25,7 @@ public function setup(){ } public function testThatEventIsEmittedOnError(){ - $received_events = []; + $received_events = array(); $this->_proxy->on('success', function($sender, $call_context, $result) use (&$received_events){ $received_events[] = array('name' => 'success', 'result' => $result); @@ -44,7 +44,7 @@ public function testThatEventIsEmittedOnError(){ public function testThatEventIsEmittedOnSuccess(){ - $received_events = []; + $received_events = array(); $this->_proxy->on('success', function($sender, $call_context, $result) use (&$received_events){ $received_events[] = array('name' => 'success', 'result' => $result); @@ -66,4 +66,4 @@ public function testThatEventIsEmittedOnSuccess(){ } } -?> \ No newline at end of file +?>