public function call(array $args) { call_user_func_array($this->getCallback(), $args); }
public function testCallShouldInvokeCallbackWithSuppliedArguments() { $handle = new Horde_PubSub_Handle('foo', $this, 'handleCall'); $args = array('foo', 'bar', 'baz'); $handle->call($args); $this->assertSame($args, $this->args); }