*
* @param integer $level values -1, 0, 1 and 2 are supported
* @return $this
- * @deprecated use setOption
*/
public function setDebug($level)
{
'invalid_return' => 2,
'incorrect_params' => -32602,
'introspect_unknown' => -32601, // this shares the same code but has a separate meaning from 'unknown_method'...
- 'http_error' => 32300,
+ 'http_error' => -32300,
'no_data' => -32700,
'no_ssl' => -32400,
'curl_fail' => -32400,
* execution anymore, but just end up logged in the xml-rpc response)
* Note that info added at level 2 and 3 will be base64 encoded
* @return $this
- * @deprecated use setOption
*/
public function setDebug($level)
{
$this->assertEquals(5, $r->faultCode());
}
+ public function test404Interop()
+ {
+ $m = new xmlrpcmsg('examples.echo', array(
+ new xmlrpcval('hello', 'string'),
+ ));
+ $orig = \PhpXmlRpc\PhpXmlRpc::$xmlrpcerr;
+ \PhpXmlRpc\PhpXmlRpc::useInteropFaults();
+ $r = $this->client->send($m, 5);
+ $this->assertEquals(-32300, $r->faultCode());
+ \PhpXmlRpc\PhpXmlRpc::$xmlrpcerr = $orig;
+ }
+
public function testSrvNotFound()
{
$m = new xmlrpcmsg('examples.echo', array(