addCall() public méthode

Add a call to the end of the multicall stack
public addCall ( string $methodName, array $params = [], callable $onSuccess = null, callable $onError = null ) : fxmlrpc\MulticallBuilderInterface
$methodName string
$params array
$onSuccess callable
$onError callable
Résultat fxmlrpc\MulticallBuilderInterface
 public function testInvalidMethodType()
 {
     $this->setExpectedException('fXmlRpc\\Exception\\InvalidArgumentException', 'Expected parameter 1 to be of type "string", "object" of type "stdClass" given');
     $this->multicallBuilder->addCall(new \stdClass());
 }