public function testMulticallWithError(MulticallClientInterface $client)
{
$this->handlerInvoked = 0;
$this->expected = array(array('faultCode' => 1, 'faultString' => '<type \'exceptions.Exception\'>:method "invalidMethod" is not supported'));
$result = $client->multicall()->addCall('invalidMethod')->onError(array($this, 'handler'))->execute();
$this->assertSame(1, $this->handlerInvoked);
$this->assertSame($this->expected, $result);
}