Fixed tests
This commit is contained in:
parent
edf2f9f011
commit
7fd56b657c
|
@ -44,7 +44,7 @@ class RpcLiteralRequestMessageBinderTest extends \PHPUnit_Framework_TestCase
|
|||
|
||||
$messageBinder = new RpcLiteralRequestMessageBinder();
|
||||
$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')),
|
||||
)),
|
||||
array($attributes),
|
||||
|
@ -67,7 +67,7 @@ class RpcLiteralRequestMessageBinderTest extends \PHPUnit_Framework_TestCase
|
|||
|
||||
$messageBinder = new RpcLiteralRequestMessageBinder();
|
||||
$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[]')),
|
||||
)),
|
||||
array($message),
|
||||
|
@ -90,7 +90,7 @@ class RpcLiteralRequestMessageBinderTest extends \PHPUnit_Framework_TestCase
|
|||
|
||||
$messageBinder = new RpcLiteralRequestMessageBinder();
|
||||
$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')),
|
||||
)),
|
||||
array($methods),
|
||||
|
@ -115,7 +115,7 @@ class RpcLiteralRequestMessageBinderTest extends \PHPUnit_Framework_TestCase
|
|||
|
||||
$messageBinder = new RpcLiteralRequestMessageBinder();
|
||||
$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')),
|
||||
)),
|
||||
array($complexType),
|
||||
|
@ -153,7 +153,7 @@ class RpcLiteralRequestMessageBinderTest extends \PHPUnit_Framework_TestCase
|
|||
|
||||
$messageBinder = new RpcLiteralRequestMessageBinder();
|
||||
$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[]')),
|
||||
)),
|
||||
array($complexTypes),
|
||||
|
@ -178,7 +178,7 @@ class RpcLiteralRequestMessageBinderTest extends \PHPUnit_Framework_TestCase
|
|||
);
|
||||
|
||||
$messages[] = array(
|
||||
new Method('string_argument', null, array(
|
||||
new Method('string_argument', null, array(), array(
|
||||
new Argument('foo', new Type('string')),
|
||||
)),
|
||||
array('bar'),
|
||||
|
@ -186,7 +186,7 @@ class RpcLiteralRequestMessageBinderTest extends \PHPUnit_Framework_TestCase
|
|||
);
|
||||
|
||||
$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('bar', new Type('int')),
|
||||
)),
|
||||
|
@ -197,7 +197,7 @@ class RpcLiteralRequestMessageBinderTest extends \PHPUnit_Framework_TestCase
|
|||
$strings = new \stdClass();
|
||||
$strings->item = array('foo', 'bar', 'barfoo');
|
||||
$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('bar', new Type('int')),
|
||||
)),
|
||||
|
|
|
@ -47,7 +47,7 @@ class RpcLiteralResponseMessageBinderTest extends \PHPUnit_Framework_TestCase
|
|||
$attributes->bar = 20349;
|
||||
$messageBinder = new RpcLiteralResponseMessageBinder();
|
||||
$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,
|
||||
$definitionComplexTypes
|
||||
);
|
||||
|
@ -65,7 +65,7 @@ class RpcLiteralResponseMessageBinderTest extends \PHPUnit_Framework_TestCase
|
|||
$message = array($attributes1, $attributes2);
|
||||
$messageBinder = new RpcLiteralResponseMessageBinder();
|
||||
$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,
|
||||
$definitionComplexTypes
|
||||
);
|
||||
|
@ -89,7 +89,7 @@ class RpcLiteralResponseMessageBinderTest extends \PHPUnit_Framework_TestCase
|
|||
|
||||
$messageBinder = new RpcLiteralResponseMessageBinder();
|
||||
$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,
|
||||
$this->getDefinitionComplexTypes()
|
||||
);
|
||||
|
@ -115,7 +115,7 @@ class RpcLiteralResponseMessageBinderTest extends \PHPUnit_Framework_TestCase
|
|||
|
||||
$messageBinder = new RpcLiteralResponseMessageBinder();
|
||||
$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,
|
||||
$this->getDefinitionComplexTypes()
|
||||
);
|
||||
|
@ -140,7 +140,7 @@ class RpcLiteralResponseMessageBinderTest extends \PHPUnit_Framework_TestCase
|
|||
$message = array($attributes, $attributes);
|
||||
$messageBinder = new RpcLiteralResponseMessageBinder();
|
||||
$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,
|
||||
$this->getDefinitionComplexTypes()
|
||||
);
|
||||
|
@ -154,13 +154,13 @@ class RpcLiteralResponseMessageBinderTest extends \PHPUnit_Framework_TestCase
|
|||
$messages = array();
|
||||
|
||||
$messages[] = array(
|
||||
new Method('boolean', null, array(), new Type('boolean')),
|
||||
new Method('boolean', null, array(), array(), new Type('boolean')),
|
||||
true,
|
||||
true,
|
||||
);
|
||||
|
||||
$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'),
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue