Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Commit

Permalink
Merge branch 'master' of git://github.com/zendframework/zf2 into ZF2-377
Browse files Browse the repository at this point in the history
  • Loading branch information
marc-mabe committed Jul 17, 2012
5 parents f3d5365 + 88de986 + b1c3dd1 + fb38487 + 7bfe758 commit 06d397d
Show file tree
Hide file tree
Showing 9 changed files with 55 additions and 55 deletions.
2 changes: 1 addition & 1 deletion src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -956,7 +956,7 @@ public function _doRequest(Client\Common $client, $request, $location, $action,
{
// Perform request as is
if ($one_way === null) {
return call_user_func(array($client,'SoapClient::__doRequest'), $request, $location, $action, $version);
return call_user_func(array($client,'SoapClient::__doRequest'), $request, $location, $action, $version);
}
return call_user_func(array($client, 'SoapClient::__doRequest'), $request, $location, $action, $version, $one_way);
}
Expand Down
4 changes: 2 additions & 2 deletions src/Client/Common.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class Common extends \SoapClient
* @param string $wsdl
* @param array $options
*/
function __construct($doRequestCallback, $wsdl, $options)
public function __construct($doRequestCallback, $wsdl, $options)
{
$this->_doRequestCallback = $doRequestCallback;

Expand All @@ -51,7 +51,7 @@ function __construct($doRequestCallback, $wsdl, $options)
* @param int $one_way
* @return mixed
*/
function __doRequest($request, $location, $action, $version, $one_way = null)
public function __doRequest($request, $location, $action, $version, $one_way = null)
{
if ($one_way === null) {
return call_user_func($this->_doRequestCallback, $this, $request, $location, $action, $version);
Expand Down
2 changes: 1 addition & 1 deletion src/Client/Local.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class Local extends SOAPClient
* @param string $wsdl
* @param array $options
*/
function __construct(SOAPServer $server, $wsdl, $options = null)
public function __construct(SOAPServer $server, $wsdl, $options = null)
{
$this->_server = $server;

Expand Down
14 changes: 7 additions & 7 deletions test/AutoDiscoverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ protected function assertValidWSDL(\DOMDocument $dom)
unlink($file);
}

function testSetClass()
public function testSetClass()
{
$scriptUri = 'http://localhost/my_script.php';

Expand Down Expand Up @@ -147,7 +147,7 @@ function testSetClass()
$this->assertValidWSDL($dom);
}

function testSetClassWithDifferentStyles()
public function testSetClassWithDifferentStyles()
{
$scriptUri = 'http://localhost/my_script.php';

Expand Down Expand Up @@ -301,7 +301,7 @@ function testSetClassWithDifferentStyles()
/**
* @group ZF-5072
*/
function testSetClassWithResponseReturnPartCompabilityMode()
public function testSetClassWithResponseReturnPartCompabilityMode()
{
$scriptUri = 'http://localhost/my_script.php';

Expand All @@ -318,7 +318,7 @@ function testSetClassWithResponseReturnPartCompabilityMode()
unlink(__DIR__.'/TestAsset/setclass.wsdl');
}

function testAddFunctionSimple()
public function testAddFunctionSimple()
{
$scriptUri = 'http://localhost/my_script.php';

Expand Down Expand Up @@ -355,7 +355,7 @@ function testAddFunctionSimple()
$this->assertValidWSDL($dom);
}

function testAddFunctionSimpleWithDifferentStyle()
public function testAddFunctionSimpleWithDifferentStyle()
{
$scriptUri = 'http://localhost/my_script.php';

Expand Down Expand Up @@ -401,7 +401,7 @@ function testAddFunctionSimpleWithDifferentStyle()
/**
* @group ZF-5072
*/
function testAddFunctionSimpleInReturnNameCompabilityMode()
public function testAddFunctionSimpleInReturnNameCompabilityMode()
{
$scriptUri = 'http://localhost/my_script.php';

Expand All @@ -418,7 +418,7 @@ function testAddFunctionSimpleInReturnNameCompabilityMode()
$this->assertValidWSDL($dom);
}

function testAddFunctionMultiple()
public function testAddFunctionMultiple()
{
$scriptUri = 'http://localhost/my_script.php';

Expand Down
4 changes: 2 additions & 2 deletions test/ServerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -326,8 +326,8 @@ public function testSetClassTwiceThrowsException()
$server->setClass('\ZendTest\Soap\TestAsset\ServerTestClass');

$this->setExpectedException(
'Zend\Soap\Exception\InvalidArgumentException',
'A class has already been registered with this soap server instance'
'Zend\Soap\Exception\InvalidArgumentException',
'A class has already been registered with this soap server instance'
);
$server->setClass('\ZendTest\Soap\TestAsset\ServerTestClass');
}
Expand Down
32 changes: 16 additions & 16 deletions test/TestAsset/commontypes.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ class TestFixingMultiplePrototypes
* @param integer $d
* @return integer
*/
function testFunc($a=100, $b=200, $d=300)
public function testFunc($a=100, $b=200, $d=300)
{

}
Expand All @@ -137,7 +137,7 @@ class Test
*
* @return string
*/
function testFunc1()
public function testFunc1()
{
return "Hello World";
}
Expand All @@ -148,7 +148,7 @@ function testFunc1()
* @param string $who Some Arg
* @return string
*/
function testFunc2($who)
public function testFunc2($who)
{
return "Hello $who!";
}
Expand All @@ -160,7 +160,7 @@ function testFunc2($who)
* @param int $when Some
* @return string
*/
function testFunc3($who, $when)
public function testFunc3($who, $when)
{
return "Hello $who, How are you $when";
}
Expand All @@ -170,7 +170,7 @@ function testFunc3($who, $when)
*
* @return string
*/
static function testFunc4()
public static function testFunc4()
{
return "I'm Static!";
}
Expand Down Expand Up @@ -445,7 +445,7 @@ class TestClass
*
* @return string
*/
function testFunc1()
public function testFunc1()
{
return "Hello World";
}
Expand All @@ -456,7 +456,7 @@ function testFunc1()
* @param string $who Some Arg
* @return string
*/
function testFunc2($who)
public function testFunc2($who)
{
return "Hello $who!";
}
Expand All @@ -468,7 +468,7 @@ function testFunc2($who)
* @param int $when Some
* @return string
*/
function testFunc3($who, $when)
public function testFunc3($who, $when)
{
return "Hello $who, How are you $when";
}
Expand All @@ -478,7 +478,7 @@ function testFunc3($who, $when)
*
* @return string
*/
static function testFunc4()
public static function testFunc4()
{
return "I'm Static!";
}
Expand Down Expand Up @@ -549,7 +549,7 @@ class ServerTestClass
*
* @return string
*/
function testFunc1()
public function testFunc1()
{
return "Hello World";
}
Expand All @@ -560,7 +560,7 @@ function testFunc1()
* @param string $who Some Arg
* @return string
*/
function testFunc2($who)
public function testFunc2($who)
{
return "Hello $who!";
}
Expand All @@ -572,7 +572,7 @@ function testFunc2($who)
* @param int $when Some
* @return string
*/
function testFunc3($who, $when)
public function testFunc3($who, $when)
{
return "Hello $who, How are you $when";
}
Expand All @@ -582,7 +582,7 @@ function testFunc3($who, $when)
*
* @return string
*/
static function testFunc4()
public static function testFunc4()
{
return "I'm Static!";
}
Expand All @@ -592,7 +592,7 @@ static function testFunc4()
*
* @return void
*/
function testFunc5()
public function testFunc5()
{
trigger_error("Test Message", E_USER_ERROR);
}
Expand All @@ -617,13 +617,13 @@ class TestLocalSoapClient extends \SoapClient
* @param string $wsdl
* @param array $options
*/
function __construct(\Zend\Soap\Server $server, $wsdl, $options)
public function __construct(\Zend\Soap\Server $server, $wsdl, $options)
{
$this->server = $server;
parent::__construct($wsdl, $options);
}

function __doRequest($request, $location, $action, $version, $one_way = 0)
public function __doRequest($request, $location, $action, $version, $one_way = 0)
{
ob_start();
$this->server->handle($request);
Expand Down
Loading

0 comments on commit 06d397d

Please sign in to comment.