2020use Zend \XmlRpc ;
2121
2222/**
23- * Test case for Zend\XmlRpc\Client
24- *
2523 * @category Zend
2624 * @package Zend_XmlRpc
2725 * @subpackage UnitTests
@@ -651,13 +649,13 @@ public function testHandlesLeadingOrTrailingWhitespaceInChunkedResponseProperly(
651649 $ baseUri = "http://foo:80 " ;
652650 $ this ->httpAdapter = new Adapter \Test ();
653651 $ this ->httpClient = new Http \Client (null , array ('adapter ' => $ this ->httpAdapter ));
654-
652+
655653 $ respBody = file_get_contents (dirname (__FILE__ ) . "/_files/ZF1897-response-chunked.txt " );
656654 $ this ->httpAdapter ->setResponse ($ respBody );
657655
658656 $ this ->xmlrpcClient = new Client ($ baseUri );
659657 $ this ->xmlrpcClient ->setHttpClient ($ this ->httpClient );
660-
658+
661659 $ this ->assertEquals ('FOO ' , $ this ->xmlrpcClient ->call ('foo ' ));
662660 }
663661
@@ -715,8 +713,10 @@ public function mockHttpClient()
715713}
716714
717715/** related to ZF-8478 */
718- class PythonSimpleXMLRPCServerWithUnsupportedIntrospection extends Client \ServerProxy {
719- public function __call ($ method , $ args ) {
716+ class PythonSimpleXMLRPCServerWithUnsupportedIntrospection extends Client \ServerProxy
717+ {
718+ public function __call ($ method , $ args )
719+ {
720720 if ($ method == 'methodSignature ' ) {
721721 return 'signatures not supported ' ;
722722 }
@@ -725,8 +725,10 @@ public function __call($method, $args) {
725725}
726726
727727/** related to ZF-8478 */
728- class TestClient extends Client {
729- public function getProxy ($ namespace = '' ) {
728+ class TestClient extends Client
729+ {
730+ public function getProxy ($ namespace = '' )
731+ {
730732 if (empty ($ this ->_proxyCache [$ namespace ])) {
731733 $ this ->_proxyCache [$ namespace ] = new PythonSimpleXMLRPCServerWithUnsupportedIntrospection ($ this , $ namespace );
732734 }
0 commit comments