Horde_PubSub_Handle::call PHP Method

call() public method

Invoke handler
public call ( array $args ) : void
$args array Arguments to pass to callback
return void
    public function call(array $args)
    {
        call_user_func_array($this->getCallback(), $args);
    }

Usage Example

Ejemplo n.º 1
0
 public function testCallShouldInvokeCallbackWithSuppliedArguments()
 {
     $handle = new Horde_PubSub_Handle('foo', $this, 'handleCall');
     $args = array('foo', 'bar', 'baz');
     $handle->call($args);
     $this->assertSame($args, $this->args);
 }