Fixed tests
This commit is contained in:
parent
edf2f9f011
commit
7fd56b657c
|
@ -44,7 +44,7 @@ class RpcLiteralRequestMessageBinderTest extends \PHPUnit_Framework_TestCase
|
||||||
|
|
||||||
$messageBinder = new RpcLiteralRequestMessageBinder();
|
$messageBinder = new RpcLiteralRequestMessageBinder();
|
||||||
$result = $messageBinder->processMessage(
|
$result = $messageBinder->processMessage(
|
||||||
new Method('complextype_argument', null, array(
|
new Method('complextype_argument', null, array(), array(
|
||||||
new Argument('attributes', new Type('\BeSimple\SoapBundle\Tests\ServiceBinding\fixtures\Attributes')),
|
new Argument('attributes', new Type('\BeSimple\SoapBundle\Tests\ServiceBinding\fixtures\Attributes')),
|
||||||
)),
|
)),
|
||||||
array($attributes),
|
array($attributes),
|
||||||
|
@ -67,7 +67,7 @@ class RpcLiteralRequestMessageBinderTest extends \PHPUnit_Framework_TestCase
|
||||||
|
|
||||||
$messageBinder = new RpcLiteralRequestMessageBinder();
|
$messageBinder = new RpcLiteralRequestMessageBinder();
|
||||||
$result = $messageBinder->processMessage(
|
$result = $messageBinder->processMessage(
|
||||||
new Method('complextype_argument', null, array(
|
new Method('complextype_argument', null, array(), array(
|
||||||
new Argument('attributes', new Type('\BeSimple\SoapBundle\Tests\ServiceBinding\fixtures\Attributes[]')),
|
new Argument('attributes', new Type('\BeSimple\SoapBundle\Tests\ServiceBinding\fixtures\Attributes[]')),
|
||||||
)),
|
)),
|
||||||
array($message),
|
array($message),
|
||||||
|
@ -90,7 +90,7 @@ class RpcLiteralRequestMessageBinderTest extends \PHPUnit_Framework_TestCase
|
||||||
|
|
||||||
$messageBinder = new RpcLiteralRequestMessageBinder();
|
$messageBinder = new RpcLiteralRequestMessageBinder();
|
||||||
$result = $messageBinder->processMessage(
|
$result = $messageBinder->processMessage(
|
||||||
new Method('complextype_methods', null, array(
|
new Method('complextype_methods', null, array(), array(
|
||||||
new Argument('setters', new Type('\BeSimple\SoapBundle\Tests\ServiceBinding\fixtures\Setters')),
|
new Argument('setters', new Type('\BeSimple\SoapBundle\Tests\ServiceBinding\fixtures\Setters')),
|
||||||
)),
|
)),
|
||||||
array($methods),
|
array($methods),
|
||||||
|
@ -115,7 +115,7 @@ class RpcLiteralRequestMessageBinderTest extends \PHPUnit_Framework_TestCase
|
||||||
|
|
||||||
$messageBinder = new RpcLiteralRequestMessageBinder();
|
$messageBinder = new RpcLiteralRequestMessageBinder();
|
||||||
$result = $messageBinder->processMessage(
|
$result = $messageBinder->processMessage(
|
||||||
new Method('complextype_complextype', null, array(
|
new Method('complextype_complextype', null, array(), array(
|
||||||
new Argument('complex_type', new Type('\BeSimple\SoapBundle\Tests\ServiceBinding\fixtures\ComplexType')),
|
new Argument('complex_type', new Type('\BeSimple\SoapBundle\Tests\ServiceBinding\fixtures\ComplexType')),
|
||||||
)),
|
)),
|
||||||
array($complexType),
|
array($complexType),
|
||||||
|
@ -153,7 +153,7 @@ class RpcLiteralRequestMessageBinderTest extends \PHPUnit_Framework_TestCase
|
||||||
|
|
||||||
$messageBinder = new RpcLiteralRequestMessageBinder();
|
$messageBinder = new RpcLiteralRequestMessageBinder();
|
||||||
$result = $messageBinder->processMessage(
|
$result = $messageBinder->processMessage(
|
||||||
new Method('complextypes_references', null, array(
|
new Method('complextypes_references', null, array(), array(
|
||||||
new Argument('complex_types', new Type('\BeSimple\SoapBundle\Tests\ServiceBinding\fixtures\ComplexType[]')),
|
new Argument('complex_types', new Type('\BeSimple\SoapBundle\Tests\ServiceBinding\fixtures\ComplexType[]')),
|
||||||
)),
|
)),
|
||||||
array($complexTypes),
|
array($complexTypes),
|
||||||
|
@ -178,7 +178,7 @@ class RpcLiteralRequestMessageBinderTest extends \PHPUnit_Framework_TestCase
|
||||||
);
|
);
|
||||||
|
|
||||||
$messages[] = array(
|
$messages[] = array(
|
||||||
new Method('string_argument', null, array(
|
new Method('string_argument', null, array(), array(
|
||||||
new Argument('foo', new Type('string')),
|
new Argument('foo', new Type('string')),
|
||||||
)),
|
)),
|
||||||
array('bar'),
|
array('bar'),
|
||||||
|
@ -186,7 +186,7 @@ class RpcLiteralRequestMessageBinderTest extends \PHPUnit_Framework_TestCase
|
||||||
);
|
);
|
||||||
|
|
||||||
$messages[] = array(
|
$messages[] = array(
|
||||||
new Method('string_int_arguments', null, array(
|
new Method('string_int_arguments', null, array(), array(
|
||||||
new Argument('foo', new Type('string')),
|
new Argument('foo', new Type('string')),
|
||||||
new Argument('bar', new Type('int')),
|
new Argument('bar', new Type('int')),
|
||||||
)),
|
)),
|
||||||
|
@ -197,7 +197,7 @@ class RpcLiteralRequestMessageBinderTest extends \PHPUnit_Framework_TestCase
|
||||||
$strings = new \stdClass();
|
$strings = new \stdClass();
|
||||||
$strings->item = array('foo', 'bar', 'barfoo');
|
$strings->item = array('foo', 'bar', 'barfoo');
|
||||||
$messages[] = array(
|
$messages[] = array(
|
||||||
new Method('array_string_arguments', null, array(
|
new Method('array_string_arguments', null, array(), array(
|
||||||
new Argument('foo', new Type('string[]')),
|
new Argument('foo', new Type('string[]')),
|
||||||
new Argument('bar', new Type('int')),
|
new Argument('bar', new Type('int')),
|
||||||
)),
|
)),
|
||||||
|
|
|
@ -47,7 +47,7 @@ class RpcLiteralResponseMessageBinderTest extends \PHPUnit_Framework_TestCase
|
||||||
$attributes->bar = 20349;
|
$attributes->bar = 20349;
|
||||||
$messageBinder = new RpcLiteralResponseMessageBinder();
|
$messageBinder = new RpcLiteralResponseMessageBinder();
|
||||||
$result = $messageBinder->processMessage(
|
$result = $messageBinder->processMessage(
|
||||||
new Method('complextype', null, array(), new Type('\BeSimple\SoapBundle\Tests\ServiceBinding\fixtures\Attributes')),
|
new Method('complextype', null, array(), array(), new Type('\BeSimple\SoapBundle\Tests\ServiceBinding\fixtures\Attributes')),
|
||||||
$attributes,
|
$attributes,
|
||||||
$definitionComplexTypes
|
$definitionComplexTypes
|
||||||
);
|
);
|
||||||
|
@ -65,7 +65,7 @@ class RpcLiteralResponseMessageBinderTest extends \PHPUnit_Framework_TestCase
|
||||||
$message = array($attributes1, $attributes2);
|
$message = array($attributes1, $attributes2);
|
||||||
$messageBinder = new RpcLiteralResponseMessageBinder();
|
$messageBinder = new RpcLiteralResponseMessageBinder();
|
||||||
$result = $messageBinder->processMessage(
|
$result = $messageBinder->processMessage(
|
||||||
new Method('complextype_argument', null, array(), new Type('\BeSimple\SoapBundle\Tests\ServiceBinding\fixtures\Attributes[]')),
|
new Method('complextype_argument', null, array(), array(), new Type('\BeSimple\SoapBundle\Tests\ServiceBinding\fixtures\Attributes[]')),
|
||||||
$message,
|
$message,
|
||||||
$definitionComplexTypes
|
$definitionComplexTypes
|
||||||
);
|
);
|
||||||
|
@ -89,7 +89,7 @@ class RpcLiteralResponseMessageBinderTest extends \PHPUnit_Framework_TestCase
|
||||||
|
|
||||||
$messageBinder = new RpcLiteralResponseMessageBinder();
|
$messageBinder = new RpcLiteralResponseMessageBinder();
|
||||||
$result = $messageBinder->processMessage(
|
$result = $messageBinder->processMessage(
|
||||||
new Method('complextype_methods', null, array(), new Type('\BeSimple\SoapBundle\Tests\ServiceBinding\fixtures\Setters')),
|
new Method('complextype_methods', null, array(), array(), new Type('\BeSimple\SoapBundle\Tests\ServiceBinding\fixtures\Setters')),
|
||||||
$setters,
|
$setters,
|
||||||
$this->getDefinitionComplexTypes()
|
$this->getDefinitionComplexTypes()
|
||||||
);
|
);
|
||||||
|
@ -115,7 +115,7 @@ class RpcLiteralResponseMessageBinderTest extends \PHPUnit_Framework_TestCase
|
||||||
|
|
||||||
$messageBinder = new RpcLiteralResponseMessageBinder();
|
$messageBinder = new RpcLiteralResponseMessageBinder();
|
||||||
$result = $messageBinder->processMessage(
|
$result = $messageBinder->processMessage(
|
||||||
new Method('complextype_complextype', null, array(), new Type('\BeSimple\SoapBundle\Tests\ServiceBinding\fixtures\ComplexType')),
|
new Method('complextype_complextype', null, array(), array(), new Type('\BeSimple\SoapBundle\Tests\ServiceBinding\fixtures\ComplexType')),
|
||||||
$complexType,
|
$complexType,
|
||||||
$this->getDefinitionComplexTypes()
|
$this->getDefinitionComplexTypes()
|
||||||
);
|
);
|
||||||
|
@ -140,7 +140,7 @@ class RpcLiteralResponseMessageBinderTest extends \PHPUnit_Framework_TestCase
|
||||||
$message = array($attributes, $attributes);
|
$message = array($attributes, $attributes);
|
||||||
$messageBinder = new RpcLiteralResponseMessageBinder();
|
$messageBinder = new RpcLiteralResponseMessageBinder();
|
||||||
$result = $messageBinder->processMessage(
|
$result = $messageBinder->processMessage(
|
||||||
new Method('complextype_argument', null, array(), new Type('\BeSimple\SoapBundle\Tests\ServiceBinding\fixtures\Attributes[]')),
|
new Method('complextype_argument', null, array(), array(), new Type('\BeSimple\SoapBundle\Tests\ServiceBinding\fixtures\Attributes[]')),
|
||||||
$message,
|
$message,
|
||||||
$this->getDefinitionComplexTypes()
|
$this->getDefinitionComplexTypes()
|
||||||
);
|
);
|
||||||
|
@ -154,13 +154,13 @@ class RpcLiteralResponseMessageBinderTest extends \PHPUnit_Framework_TestCase
|
||||||
$messages = array();
|
$messages = array();
|
||||||
|
|
||||||
$messages[] = array(
|
$messages[] = array(
|
||||||
new Method('boolean', null, array(), new Type('boolean')),
|
new Method('boolean', null, array(), array(), new Type('boolean')),
|
||||||
true,
|
true,
|
||||||
true,
|
true,
|
||||||
);
|
);
|
||||||
|
|
||||||
$messages[] = array(
|
$messages[] = array(
|
||||||
new Method('strings', null, array(), new Type('string[]')),
|
new Method('strings', null, array(), array(), new Type('string[]')),
|
||||||
array('hello', 'world'),
|
array('hello', 'world'),
|
||||||
array('hello', 'world'),
|
array('hello', 'world'),
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue