Skip to content
This repository was archived by the owner on Apr 28, 2020. It is now read-only.

Commit 0e2a882

Browse files
committed
Merge branch 'master' of git://git.zendframework.com/zf into ZF2-13
17 parents 73871a0 + 47d468d + 538d0f4 + b5ad75a + 2363c4f + 91c2337 + 04dcb58 + 906c7b6 + 0da7bb6 + 0270a77 + 6784c86 + 90d950a + a79cdbd + 3b5ea7f + 339830e + b04f4d5 + 8da9d32 commit 0e2a882

File tree

4 files changed

+19
-22
lines changed

4 files changed

+19
-22
lines changed

src/Server.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ public function addFunction($function, $namespace = '')
210210
if (!is_string($func) || !function_exists($func)) {
211211
throw new Server\Exception\InvalidArgumentException('Unable to attach function; invalid', 611);
212212
}
213-
$reflection = Reflection\Reflection::reflectFunction($func, $argv, $namespace);
213+
$reflection = Reflection::reflectFunction($func, $argv, $namespace);
214214
$this->_buildSignature($reflection);
215215
}
216216
}
@@ -244,7 +244,7 @@ public function setClass($class, $namespace = '', $argv = null)
244244
$argv = array_slice($argv, 2);
245245
}
246246

247-
$dispatchable = Reflection\Reflection::reflectClass($class, $argv, $namespace);
247+
$dispatchable = Reflection::reflectClass($class, $argv, $namespace);
248248
foreach ($dispatchable->getMethods() as $reflection) {
249249
$this->_buildSignature($reflection, $class);
250250
}

test/ClientTest.php

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ public function testSuccessfulRpcMethodCallWithParameters()
155155
}
156156

157157
/**
158-
* @see ZF-2090
158+
* @group ZF-2090
159159
*/
160160
public function testSuccessfullyDetectsEmptyArrayParameterAsArray()
161161
{
@@ -176,9 +176,7 @@ public function testSuccessfullyDetectsEmptyArrayParameterAsArray()
176176
}
177177

178178
/**
179-
* @see ZF-1412
180-
*
181-
* @return void
179+
* @group ZF-1412
182180
*/
183181
public function testSuccessfulRpcMethodCallWithMixedDateParameters()
184182
{
@@ -647,16 +645,16 @@ public function testCustomHttpClientUserAgentIsNotOverridden()
647645
$this->assertTrue($this->xmlrpcClient->call('method'));
648646
$this->assertSame($expectedUserAgent, $this->httpClient->getHeader('user-agent'));
649647
}
650-
648+
651649
/**
652650
* @group ZF-8478
653651
*/
654652
public function testPythonSimpleXMLRPCServerWithUnsupportedMethodSignatures()
655653
{
656-
$introspector = new Client\ServerIntrospection(
654+
$introspector = new Client\ServerIntrospection(
657655
new TestClient('http://localhost/')
658656
);
659-
657+
660658
$this->setExpectedException('Zend\XmlRpc\Client\Exception\IntrospectException', 'Invalid signature for method "add"');
661659
$signature = $introspector->getMethodSignature('add');
662660
}
@@ -727,9 +725,9 @@ public function __call($method, $args) {
727725
/** related to ZF-8478 */
728726
class TestClient extends Client {
729727
public function getProxy($namespace = '') {
730-
if (empty($this->_proxyCache[$namespace])) {
731-
$this->_proxyCache[$namespace] = new PythonSimpleXMLRPCServerWithUnsupportedIntrospection($this, $namespace);
732-
}
728+
if (empty($this->_proxyCache[$namespace])) {
729+
$this->_proxyCache[$namespace] = new PythonSimpleXMLRPCServerWithUnsupportedIntrospection($this, $namespace);
730+
}
733731
return parent::getProxy($namespace);
734732
}
735733
}

test/ServerTest.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public function suppressNotFoundWarnings($errno, $errstr)
9696
*/
9797
public function testAddFunction()
9898
{
99-
99+
100100
$this->_server->addFunction('ZendTest\\XmlRpc\\testFunction', 'zsr');
101101

102102
$methods = $this->_server->listMethods();
@@ -106,13 +106,13 @@ public function testAddFunction()
106106
$this->assertTrue(in_array('zsr.ZendTest\\XmlRpc\\testFunction', $methods));
107107
$this->assertTrue(in_array('zsr.ZendTest\\XmlRpc\\testFunction2', $methods));
108108
}
109-
109+
110110
public function testAddFunctionThrowsExceptionOnInvalidInput()
111111
{
112112
$this->setExpectedException('Zend\XmlRpc\Server\Exception\InvalidArgumentException', 'Unable to attach function; invalid');
113113
$this->_server->addFunction('nosuchfunction');
114114
}
115-
115+
116116
public function testAddFunctionThrowsExceptionOnInvalidArrayInput()
117117
{
118118
//$this->setExpectedException('XXX', 'xxx');
@@ -124,7 +124,7 @@ public function testAddFunctionThrowsExceptionOnInvalidArrayInput()
124124
'zsr'
125125
);
126126
}
127-
127+
128128
/**
129129
* get/loadFunctions() test
130130
*/
@@ -446,7 +446,7 @@ public function testLoadFunctionsThrowsExceptionWithBadData()
446446
$this->setExpectedException('Zend\XmlRpc\Server\Exception\InvalidArgumentException', 'Unable to load server definition; must be an array or Zend_Server_Definition, received stdClass');
447447
$this->_server->loadFunctions($o);
448448
}
449-
449+
450450
public function testLoadFunctionsThrowsExceptionsWithBadData2()
451451
{
452452
$this->setExpectedException('Zend\XmlRpc\Server\Exception\InvalidArgumentException', 'Unable to load server definition; must be an array or Zend_Server_Definition, received string');
@@ -457,11 +457,11 @@ public function testLoadFunctionsThrowsExceptionsWithBadData3()
457457
{
458458
$o = new \stdClass();
459459
$o = array($o);
460-
460+
461461
$this->setExpectedException('Zend\Server\Exception\InvalidArgumentException', 'Invalid method provided');
462462
$this->_server->loadFunctions($o);
463463
}
464-
464+
465465
public function testLoadFunctionsReadsMethodsFromServerDefinitionObjects()
466466
{
467467
$mockedMethod = $this->getMock('Zend\\Server\\Method\\Definition', array(), array(), '', false,
@@ -494,7 +494,7 @@ public function testSetRequestThrowsExceptionOnBadClassName()
494494
$this->setExpectedException('Zend\XmlRpc\Server\Exception\InvalidArgumentException', 'Invalid request object');
495495
$this->_server->setRequest('ZendTest\\XmlRpc\\TestRequest2');
496496
}
497-
497+
498498
public function testSetRequestThrowsExceptionOnBadObject()
499499
{
500500
$this->setExpectedException('Zend\XmlRpc\Server\Exception\InvalidArgumentException', 'Invalid request object');
@@ -585,7 +585,7 @@ public function testMulticallReturnsFaultsWithBadData()
585585
}
586586

587587
/**
588-
* @see ZF-2872
588+
* @group ZF-2872
589589
*/
590590
public function testCanMarshalBase64Requests()
591591
{

tools/phptools

Submodule phptools deleted from d232cb3

0 commit comments

Comments
 (0)