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()); }