--TEST--
SOAP_Parser tests.
--FILE--
- good
- bad
EOF;
$stringArray = <<
- good
- bad
EOS;
$stringArrayOne = <<
- good
EOO;
$parser = new SOAP_Parser($foo);
var_dump($parser->getResponse());
$parser = new SOAP_Parser($stringArray);
var_dump($parser->getResponse());
$parser = new SOAP_Parser($stringArrayOne);
var_dump($parser->getResponse());
?>
--EXPECTREGEX--
object\((soap_value|SOAP_Value)\).+?10\) \{
\["value"\]\=\>
array\(1\) \{
\[0\]\=\>
object\((soap_value|SOAP_Value)\).+?10\) \{
\["value"\]\=\>
array\(2\) \{
\[0\]\=\>
object\((soap_value|SOAP_Value)\).+?10\) \{
\["value"\]\=\>
string\(4\) "good"
\["nqn"\]\=\>
object\((qname|QName)\).+?3\) \{
\["name"\]\=\>
string\(4\) "item"
\["prefix"\]\=\>
string\(0\) ""
\["namespace"\]\=\>
string\(23\) "http:\/\/soapinterop.org\/"
\}
\["name"\]\=\>
string\(4\) "item"
\["namespace"\]\=\>
string\(23\) "http:\/\/soapinterop.org\/"
\["tqn"\]\=\>
object\((qname|QName)\).+?3\) \{
\["name"\]\=\>
string\(6\) "string"
\["prefix"\]\=\>
string\(0\) ""
\["namespace"\]\=\>
string\(32\) "http:\/\/www.w3.org\/2001\/XMLSchema"
\}
\["type"\]\=\>
string\(6\) "string"
\["type_namespace"\]\=\>
string\(32\) "http:\/\/www.w3.org\/2001\/XMLSchema"
\["arrayType"\]\=\>
string\(0\) ""
\["attributes"\]\=\>
array\(0\) \{
\}
\["options"\]\=\>
array\(0\) \{
\}
\}
\[1\]\=\>
object\((soap_value|SOAP_Value)\).+?10\) \{
\["value"\]\=\>
string\(3\) "bad"
\["nqn"\]\=\>
object\((qname|QName)\).+?3\) \{
\["name"\]\=\>
string\(4\) "item"
\["prefix"\]\=\>
string\(0\) ""
\["namespace"\]\=\>
string\(23\) "http:\/\/soapinterop.org\/"
\}
\["name"\]\=\>
string\(4\) "item"
\["namespace"\]\=\>
string\(23\) "http:\/\/soapinterop.org\/"
\["tqn"\]\=\>
object\((qname|QName)\).+?3\) \{
\["name"\]\=\>
string\(6\) "string"
\["prefix"\]\=\>
string\(0\) ""
\["namespace"\]\=\>
string\(32\) "http:\/\/www.w3.org\/2001\/XMLSchema"
\}
\["type"\]\=\>
string\(6\) "string"
\["type_namespace"\]\=\>
string\(32\) "http:\/\/www.w3.org\/2001\/XMLSchema"
\["arrayType"\]\=\>
string\(0\) ""
\["attributes"\]\=\>
array\(0\) \{
\}
\["options"\]\=\>
array\(0\) \{
\}
\}
\}
\["nqn"\]\=\>
object\((qname|QName)\).+?3\) \{
\["name"\]\=\>
string\(6\) "return"
\["prefix"\]\=\>
string\(0\) ""
\["namespace"\]\=\>
string\(23\) "http:\/\/soapinterop.org\/"
\}
\["name"\]\=\>
string\(6\) "return"
\["namespace"\]\=\>
string\(23\) "http:\/\/soapinterop.org\/"
\["tqn"\]\=\>
object\((qname|QName)\).+?3\) \{
\["name"\]\=\>
string\(5\) "Array"
\["prefix"\]\=\>
string\(0\) ""
\["namespace"\]\=\>
string\(41\) "http:\/\/schemas.xmlsoap.org\/soap\/encoding\/"
\}
\["type"\]\=\>
string\(5\) "Array"
\["type_namespace"\]\=\>
string\(41\) "http:\/\/schemas.xmlsoap.org\/soap\/encoding\/"
\["arrayType"\]\=\>
string\(6\) "string"
\["attributes"\]\=\>
array\(0\) \{
\}
\["options"\]\=\>
array\(0\) \{
\}
\}
\}
\["nqn"\]\=\>
object\((qname|QName)\).+?3\) \{
\["name"\]\=\>
string\(23\) "echoStringArrayResponse"
\["prefix"\]\=\>
string\(0\) ""
\["namespace"\]\=\>
string\(23\) "http:\/\/soapinterop.org\/"
\}
\["name"\]\=\>
string\(23\) "echoStringArrayResponse"
\["namespace"\]\=\>
string\(23\) "http:\/\/soapinterop.org\/"
\["tqn"\]\=\>
object\((qname|QName)\).+?3\) \{
\["name"\]\=\>
string\(6\) "Struct"
\["prefix"\]\=\>
string\(0\) ""
\["namespace"\]\=\>
string\(0\) ""
\}
\["type"\]\=\>
string\(6\) "Struct"
\["type_namespace"\]\=\>
string\(0\) ""
\["arrayType"\]\=\>
string\(0\) ""
\["attributes"\]\=\>
array\(0\) \{
\}
\["options"\]\=\>
array\(0\) \{
\}
\}
object\((soap_value|SOAP_Value)\).+?10\) \{
\["value"\]\=\>
array\(1\) \{
\[0\]\=\>
object\((soap_value|SOAP_Value)\).+?10\) \{
\["value"\]\=\>
array\(2\) \{
\[0\]\=\>
object\((soap_value|SOAP_Value)\).+?10\) \{
\["value"\]\=\>
string\(4\) "good"
\["nqn"\]\=\>
object\((qname|QName)\).+?3\) \{
\["name"\]\=\>
string\(4\) "item"
\["prefix"\]\=\>
string\(0\) ""
\["namespace"\]\=\>
string\(23\) "http:\/\/soapinterop.org\/"
\}
\["name"\]\=\>
string\(4\) "item"
\["namespace"\]\=\>
string\(23\) "http:\/\/soapinterop.org\/"
\["tqn"\]\=\>
object\((qname|QName)\).+?3\) \{
\["name"\]\=\>
string\(6\) "string"
\["prefix"\]\=\>
string\(0\) ""
\["namespace"\]\=\>
string\(32\) "http:\/\/www.w3.org\/2001\/XMLSchema"
\}
\["type"\]\=\>
string\(6\) "string"
\["type_namespace"\]\=\>
string\(32\) "http:\/\/www.w3.org\/2001\/XMLSchema"
\["arrayType"\]\=\>
string\(0\) ""
\["attributes"\]\=\>
array\(0\) \{
\}
\["options"\]\=\>
array\(0\) \{
\}
\}
\[1\]\=\>
object\((soap_value|SOAP_Value)\).+?10\) \{
\["value"\]\=\>
string\(3\) "bad"
\["nqn"\]\=\>
object\((qname|QName)\).+?3\) \{
\["name"\]\=\>
string\(4\) "item"
\["prefix"\]\=\>
string\(0\) ""
\["namespace"\]\=\>
string\(23\) "http:\/\/soapinterop.org\/"
\}
\["name"\]\=\>
string\(4\) "item"
\["namespace"\]\=\>
string\(23\) "http:\/\/soapinterop.org\/"
\["tqn"\]\=\>
object\((qname|QName)\).+?3\) \{
\["name"\]\=\>
string\(6\) "string"
\["prefix"\]\=\>
string\(0\) ""
\["namespace"\]\=\>
string\(32\) "http:\/\/www.w3.org\/2001\/XMLSchema"
\}
\["type"\]\=\>
string\(6\) "string"
\["type_namespace"\]\=\>
string\(32\) "http:\/\/www.w3.org\/2001\/XMLSchema"
\["arrayType"\]\=\>
string\(0\) ""
\["attributes"\]\=\>
array\(0\) \{
\}
\["options"\]\=\>
array\(0\) \{
\}
\}
\}
\["nqn"\]\=\>
object\((qname|QName)\).+?3\) \{
\["name"\]\=\>
string\(17\) "outputStringArray"
\["prefix"\]\=\>
string\(0\) ""
\["namespace"\]\=\>
string\(23\) "http:\/\/soapinterop.org\/"
\}
\["name"\]\=\>
string\(17\) "outputStringArray"
\["namespace"\]\=\>
string\(23\) "http:\/\/soapinterop.org\/"
\["tqn"\]\=\>
object\((qname|QName)\).+?3\) \{
\["name"\]\=\>
string\(6\) "Struct"
\["prefix"\]\=\>
string\(0\) ""
\["namespace"\]\=\>
string\(0\) ""
\}
\["type"\]\=\>
string\(6\) "Struct"
\["type_namespace"\]\=\>
string\(0\) ""
\["arrayType"\]\=\>
string\(0\) ""
\["attributes"\]\=\>
array\(0\) \{
\}
\["options"\]\=\>
array\(0\) \{
\}
\}
\}
\["nqn"\]\=\>
object\((qname|QName)\).+?3\) \{
\["name"\]\=\>
string\(23\) "echoStringArrayResponse"
\["prefix"\]\=\>
string\(0\) ""
\["namespace"\]\=\>
string\(23\) "http:\/\/soapinterop.org\/"
\}
\["name"\]\=\>
string\(23\) "echoStringArrayResponse"
\["namespace"\]\=\>
string\(23\) "http:\/\/soapinterop.org\/"
\["tqn"\]\=\>
object\((qname|QName)\).+?3\) \{
\["name"\]\=\>
string\(6\) "Struct"
\["prefix"\]\=\>
string\(0\) ""
\["namespace"\]\=\>
string\(0\) ""
\}
\["type"\]\=\>
string\(6\) "Struct"
\["type_namespace"\]\=\>
string\(0\) ""
\["arrayType"\]\=\>
string\(0\) ""
\["attributes"\]\=\>
array\(0\) \{
\}
\["options"\]\=\>
array\(0\) \{
\}
\}
object\((soap_value|SOAP_Value)\).+?10\) \{
\["value"\]\=\>
array\(1\) \{
\[0\]\=\>
object\((soap_value|SOAP_Value)\).+?10\) \{
\["value"\]\=\>
array\(1\) \{
\[0\]\=\>
object\((soap_value|SOAP_Value)\).+?10\) \{
\["value"\]\=\>
string\(4\) "good"
\["nqn"\]\=\>
object\((qname|QName)\).+?3\) \{
\["name"\]\=\>
string\(4\) "item"
\["prefix"\]\=\>
string\(0\) ""
\["namespace"\]\=\>
string\(23\) "http:\/\/soapinterop.org\/"
\}
\["name"\]\=\>
string\(4\) "item"
\["namespace"\]\=\>
string\(23\) "http:\/\/soapinterop.org\/"
\["tqn"\]\=\>
object\((qname|QName)\).+?3\) \{
\["name"\]\=\>
string\(6\) "string"
\["prefix"\]\=\>
string\(0\) ""
\["namespace"\]\=\>
string\(32\) "http:\/\/www.w3.org\/2001\/XMLSchema"
\}
\["type"\]\=\>
string\(6\) "string"
\["type_namespace"\]\=\>
string\(32\) "http:\/\/www.w3.org\/2001\/XMLSchema"
\["arrayType"\]\=\>
string\(0\) ""
\["attributes"\]\=\>
array\(0\) \{
\}
\["options"\]\=\>
array\(0\) \{
\}
\}
\}
\["nqn"\]\=\>
object\((qname|QName)\).+?3\) \{
\["name"\]\=\>
string\(17\) "outputStringArray"
\["prefix"\]\=\>
string\(0\) ""
\["namespace"\]\=\>
string\(23\) "http:\/\/soapinterop.org\/"
\}
\["name"\]\=\>
string\(17\) "outputStringArray"
\["namespace"\]\=\>
string\(23\) "http:\/\/soapinterop.org\/"
\["tqn"\]\=\>
object\((qname|QName)\).+?3\) \{
\["name"\]\=\>
string\(6\) "Struct"
\["prefix"\]\=\>
string\(0\) ""
\["namespace"\]\=\>
string\(0\) ""
\}
\["type"\]\=\>
string\(6\) "Struct"
\["type_namespace"\]\=\>
string\(0\) ""
\["arrayType"\]\=\>
string\(0\) ""
\["attributes"\]\=\>
array\(0\) \{
\}
\["options"\]\=\>
array\(0\) \{
\}
\}
\}
\["nqn"\]\=\>
object\((qname|QName)\).+?3\) \{
\["name"\]\=\>
string\(23\) "echoStringArrayResponse"
\["prefix"\]\=\>
string\(0\) ""
\["namespace"\]\=\>
string\(23\) "http:\/\/soapinterop.org\/"
\}
\["name"\]\=\>
string\(23\) "echoStringArrayResponse"
\["namespace"\]\=\>
string\(23\) "http:\/\/soapinterop.org\/"
\["tqn"\]\=\>
object\((qname|QName)\).+?3\) \{
\["name"\]\=\>
string\(6\) "Struct"
\["prefix"\]\=\>
string\(0\) ""
\["namespace"\]\=\>
string\(0\) ""
\}
\["type"\]\=\>
string\(6\) "Struct"
\["type_namespace"\]\=\>
string\(0\) ""
\["arrayType"\]\=\>
string\(0\) ""
\["attributes"\]\=\>
array\(0\) \{
\}
\["options"\]\=\>
array\(0\) \{
\}
\}