From 7fd56b657c6b4d630490f8b6977c90949275cde9 Mon Sep 17 00:00:00 2001 From: Francis Besset Date: Sun, 14 Aug 2011 21:10:21 +0200 Subject: [PATCH] Fixed tests --- .../RpcLiteralRequestMessageBinderTest.php | 16 ++++++++-------- .../RpcLiteralResponseMessageBinderTest.php | 14 +++++++------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/Tests/ServiceBinding/RpcLiteralRequestMessageBinderTest.php b/Tests/ServiceBinding/RpcLiteralRequestMessageBinderTest.php index 0eb1997..befb786 100644 --- a/Tests/ServiceBinding/RpcLiteralRequestMessageBinderTest.php +++ b/Tests/ServiceBinding/RpcLiteralRequestMessageBinderTest.php @@ -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')), )), diff --git a/Tests/ServiceBinding/RpcLiteralResponseMessageBinderTest.php b/Tests/ServiceBinding/RpcLiteralResponseMessageBinderTest.php index bc6129f..9da41e8 100644 --- a/Tests/ServiceBinding/RpcLiteralResponseMessageBinderTest.php +++ b/Tests/ServiceBinding/RpcLiteralResponseMessageBinderTest.php @@ -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'), );