--TEST--
SOAP Classmap 1: SoapServer support for classmap
--SKIPIF--
--INI--
soap.wsdl_cache_enabled=0
--FILE--
Blaat
aap
";
class test{
function dotest(book $book){
$classname=get_class($book);
return "Classname: ".$classname;
}
}
class book{
public $a="a";
public $b="c";
}
$options=Array(
'actor' =>'http://schema.nothing.com',
'classmap' => array('book'=>'book', 'wsdltype2'=>'classname2')
);
$server = new SoapServer(dirname(__FILE__)."/classmap.wsdl",$options);
$server->setClass("test");
$server->handle($GLOBALS['HTTP_RAW_POST_DATA']);
echo "ok\n";
?>
--EXPECT--
Classname: book
ok