Changeset 1434
- Timestamp:
- 03/18/08 17:08:25 (2 months ago)
- Files:
-
- trunk/src/main/php/net/stubbles/ipo/response/stubDecoratedResponse.php (deleted)
- trunk/src/main/php/net/stubbles/service/jsonrpc/stubJsonRpcProcessor.php (modified) (2 diffs)
- trunk/src/main/php/net/stubbles/service/jsonrpc/stubJsonRpcWriter.php (moved) (moved from trunk/src/main/php/net/stubbles/service/jsonrpc/stubJsonRpcResponse.php) (6 diffs)
- trunk/src/main/php/net/stubbles/service/jsonrpc/subprocessors/stubJsonRpcGenerateProxiesSubProcessor.php (modified) (1 diff)
- trunk/src/main/php/net/stubbles/service/jsonrpc/subprocessors/stubJsonRpcGenerateSmdSubProcessor.php (modified) (1 diff)
- trunk/src/main/php/net/stubbles/service/jsonrpc/subprocessors/stubJsonRpcGetSubProcessor.php (modified) (4 diffs)
- trunk/src/main/php/net/stubbles/service/jsonrpc/subprocessors/stubJsonRpcPostSubProcessor.php (modified) (3 diffs)
- trunk/src/main/php/net/stubbles/service/jsonrpc/subprocessors/stubJsonRpcSubProcessor.php (modified) (2 diffs)
- trunk/src/test/php/net/stubbles/ipo/IPOTestSuite.php (modified) (1 diff)
- trunk/src/test/php/net/stubbles/ipo/response/stubDecoratedResponseTestCase.php (deleted)
- trunk/src/test/php/net/stubbles/service/ServiceTestSuite.php (modified) (1 diff)
- trunk/src/test/php/net/stubbles/service/jsonrpc/stubJsonRpcWriterTestCase.php (moved) (moved from trunk/src/test/php/net/stubbles/service/jsonrpc/stubJsonRpcResponseTestCase.php) (6 diffs)
- trunk/src/test/php/net/stubbles/service/jsonrpc/subprocessors/stubJsonRpcAbstractGenerateSubProcessorTestCase.php (modified) (1 diff)
- trunk/src/test/php/net/stubbles/service/jsonrpc/subprocessors/stubJsonRpcGenerateProxiesSubProcessorTestCase.php (modified) (2 diffs)
- trunk/src/test/php/net/stubbles/service/jsonrpc/subprocessors/stubJsonRpcGenerateSmdSubProcessorTestCase.php (modified) (2 diffs)
- trunk/src/test/php/net/stubbles/service/jsonrpc/subprocessors/stubJsonRpcGetSubProcessorTestCase.php (modified) (10 diffs)
- trunk/src/test/php/net/stubbles/service/jsonrpc/subprocessors/stubJsonRpcPostSubProcessorTestCase.php (modified) (13 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/main/php/net/stubbles/service/jsonrpc/stubJsonRpcProcessor.php
r1361 r1434 9 9 * @subpackage service_jsonrpc 10 10 */ 11 stubClassLoader::load('net::stubbles::service::jsonrpc::stubJsonRpcResponse', 12 'net::stubbles::util::stubRegistry', 11 stubClassLoader::load('net::stubbles::util::stubRegistry', 13 12 'net::stubbles::websites::processors::stubAbstractProcessor' 14 13 ); … … 43 42 public function __construct(stubRequest $request, stubSession $session, stubResponse $response, stubPageFactory $pageFactory) 44 43 { 45 $response = new stubJsonRpcResponse($response);46 44 parent::__construct($request, $session, $response, $pageFactory); 47 45 $this->configFile = stubConfig::getConfigPath() . DIRECTORY_SEPARATOR . stubRegistry::getConfig(self::KEY_SERVICE_FILE, 'json-rpc-service.ini'); trunk/src/main/php/net/stubbles/service/jsonrpc/stubJsonRpcWriter.php
r1361 r1434 1 1 <?php 2 2 /** 3 * Class for a json-rpc response to a request.3 * Utility class for creates json data. 4 4 * 5 5 * @author Frank Kleine <mikey@stubbles.net> … … 7 7 * @subpackage service_jsonrpc 8 8 */ 9 stubClassLoader::load('net::stubbles::ipo::response::stubDecoratedResponse', 10 'net::stubbles::php::string::stubRecursiveStringEncoder', 9 stubClassLoader::load('net::stubbles::php::string::stubRecursiveStringEncoder', 11 10 'net::stubbles::php::string::stubUTF8Encoder' 12 11 ); 13 12 /** 14 * Class for a json-rpc response to a request. 15 * 16 * Decorator around another stubResponse instance. 13 * Utility class for creates json data. 17 14 * 18 15 * @package stubbles 19 16 * @subpackage service_jsonrpc 20 17 * @link http://json-rpc.org/wiki/specification 18 * @static 21 19 */ 22 class stubJsonRpc Response extends stubDecoratedResponse20 class stubJsonRpcWriter extends stubBaseObject 23 21 { 24 22 /** … … 45 43 * @param string $message fault message 46 44 */ 47 public function writeFault($reqId, $message)45 public static function writeFault($reqId, $message) 48 46 { 49 47 $fault = array('id' => $reqId, … … 51 49 'error' => self::$encoder->encode($message) 52 50 ); 53 $this->response->write(json_encode($fault));51 return json_encode($fault); 54 52 } 55 53 … … 60 58 * @param string $result 61 59 */ 62 public function writeResponse($reqId, $result)60 public static function writeResponse($reqId, $result) 63 61 { 64 62 $response = array('id' => $reqId, … … 66 64 'error' => null 67 65 ); 68 $this->response->write(json_encode($response));66 return json_encode($response); 69 67 } 70 68 } trunk/src/main/php/net/stubbles/service/jsonrpc/subprocessors/stubJsonRpcGenerateProxiesSubProcessor.php
r1361 r1434 34 34 * @param stubRequest $request the current request 35 35 * @param stubSession $session the current session 36 * @param stub JsonRpcResponse$response the current response36 * @param stubResponse $response the current response 37 37 * @param array<string,array<string,string>> $classMap list of available webservice classes 38 38 */ 39 public function process(stubRequest $request, stubSession $session, stub JsonRpcResponse $response, array $classMap)39 public function process(stubRequest $request, stubSession $session, stubResponse $response, array $classMap) 40 40 { 41 41 $classes = $request->getValidatedValue(new stubRegexValidator('/^[A-Za-z,0-9_\.]+$/'), '__generateProxy'); trunk/src/main/php/net/stubbles/service/jsonrpc/subprocessors/stubJsonRpcGenerateSmdSubProcessor.php
r1361 r1434 24 24 * @param stubRequest $request the current request 25 25 * @param stubSession $session the current session 26 * @param stub JsonRpcResponse$response the current response26 * @param stubResponse $response the current response 27 27 * @param array<string,array<string,string>> $classMap list of available webservice classes 28 28 */ 29 public function process(stubRequest $request, stubSession $session, stub JsonRpcResponse $response, array $classMap)29 public function process(stubRequest $request, stubSession $session, stubResponse $response, array $classMap) 30 30 { 31 31 $class = $request->getValidatedValue(new stubRegexValidator('/^[A-Za-z0-9_\.]+$/'), '__smd'); trunk/src/main/php/net/stubbles/service/jsonrpc/subprocessors/stubJsonRpcGetSubProcessor.php
r1361 r1434 10 10 */ 11 11 stubClassLoader::load('net::stubbles::service::jsonrpc::subprocessors::stubJsonRpcAbstractInvokingSubProcessor', 12 'net::stubbles::service::jsonrpc::stubJsonRpcWriter', 12 13 'net::stubbles::util::validators::stubPassThruValidator', 13 14 'net::stubbles::util::validators::stubRegexValidator' … … 44 45 * @param stubRequest $request the current request 45 46 * @param stubSession $session the current session 46 * @param stub JsonRpcResponse$response the current response47 * @param stubResponse $response the current response 47 48 * @param array<string,array<string,string>> $classMap list of available webservice classes 48 49 */ 49 public function process(stubRequest $request, stubSession $session, stub JsonRpcResponse $response, array $classMap)50 public function process(stubRequest $request, stubSession $session, stubResponse $response, array $classMap) 50 51 { 51 52 $requestId = $request->getValidatedValue(new stubRegexValidator(self::ID_PATTERN), 'id'); 52 53 if (null === $requestId) { 53 $response->write Fault($requestId, 'Invalid request: No id given.');54 $response->write(stubJsonRpcWriter::writeFault($requestId, 'Invalid request: No id given.')); 54 55 return; 55 56 } … … 57 58 $method = $request->getValidatedValue(new stubPassThruValidator(), 'method'); 58 59 if (null === $method) { 59 $response->write Fault($requestId, 'Invalid request: No method given.');60 $response->write(stubJsonRpcWriter::writeFault($requestId, 'Invalid request: No method given.')); 60 61 return; 61 62 } … … 65 66 $params = $this->retrieveGETParams($request, $reflect['method']); 66 67 $result = $this->invokeServiceMethod($reflect['class'], $reflect['method'], $params); 67 $response->write Response($requestId, $result);68 $response->write(stubJsonRpcWriter::writeResponse($requestId, $result)); 68 69 } catch (Exception $e) { 69 $response->write Fault($requestId, $e->getMessage());70 $response->write(stubJsonRpcWriter::writeFault($requestId, $e->getMessage())); 70 71 } 71 72 } trunk/src/main/php/net/stubbles/service/jsonrpc/subprocessors/stubJsonRpcPostSubProcessor.php
r1361 r1434 10 10 */ 11 11 stubClassLoader::load('net::stubbles::service::jsonrpc::subprocessors::stubJsonRpcAbstractInvokingSubProcessor', 12 'net::stubbles::service::jsonrpc::stubJsonRpcWriter', 12 13 'net::stubbles::util::validators::stubPassThruValidator' 13 14 ); … … 26 27 * @param stubRequest $request the current request 27 28 * @param stubSession $session the current session 28 * @param stub JsonRpcResponse$response the current response29 * @param stubResponse $response the current response 29 30 * @param array<string,array<string,string>> $classMap list of available webservice classes 30 31 */ 31 public function process(stubRequest $request, stubSession $session, stub JsonRpcResponse $response, array $classMap)32 public function process(stubRequest $request, stubSession $session, stubResponse $response, array $classMap) 32 33 { 33 34 $requestJsonObj = $request->getValidatedRawData(new stubPassThruValidator()); 34 35 $phpJsonObj = json_decode($requestJsonObj); 35 36 if (is_object($phpJsonObj) === false) { 36 $response->write Fault(null, 'Invalid request.');37 $response->write(stubJsonRpcWriter::writeFault(null, 'Invalid request.')); 37 38 return; 38 39 } 39 40 40 41 if (isset($phpJsonObj->id) === false) { 41 $response->write Fault(null, 'Invalid request: No id given.');42 $response->write(stubJsonRpcWriter::writeFault(null, 'Invalid request: No id given.')); 42 43 return; 43 44 } 44 45 45 46 if (isset($phpJsonObj->method) === false) { 46 $response->write Fault($phpJsonObj->id, 'Invalid request: No method given.');47 $response->write(stubJsonRpcWriter::writeFault($phpJsonObj->id, 'Invalid request: No method given.')); 47 48 return; 48 49 } 49 50 50 51 if (isset($phpJsonObj->params) === false) { 51 $response->write Fault($phpJsonObj->id, 'Invalid request: No params given.');52 $response->write(stubJsonRpcWriter::writeFault($phpJsonObj->id, 'Invalid request: No params given.')); 52 53 return; 53 54 } … … 61 62 $reflect = $this->getClassAndMethod($classMap, $phpJsonObj->method, $className); 62 63 $result = $this->invokeServiceMethod($reflect['class'], $reflect['method'], $phpJsonObj->params); 63 $response->write Response($phpJsonObj->id, $result);64 $response->write(stubJsonRpcWriter::writeResponse($phpJsonObj->id, $result)); 64 65 } catch (Exception $e) { 65 $response->write Fault($phpJsonObj->id, $e->getMessage());66 $response->write(stubJsonRpcWriter::writeFault($phpJsonObj->id, $e->getMessage())); 66 67 } 67 68 } trunk/src/main/php/net/stubbles/service/jsonrpc/subprocessors/stubJsonRpcSubProcessor.php
r1361 r1434 8 8 */ 9 9 stubClassLoader::load('net::stubbles::ipo::request::stubRequest', 10 'net::stubbles::ipo:: session::stubSession',11 'net::stubbles:: service::jsonrpc::stubJsonRpcResponse'10 'net::stubbles::ipo::response::stubResponse', 11 'net::stubbles::ipo::session::stubSession' 12 12 ); 13 13 /** … … 24 24 * @param stubRequest $request the current request 25 25 * @param stubSession $session the current session 26 * @param stub JsonRpcResponse$response the current response26 * @param stubResponse $response the current response 27 27 * @param array<string,array<string,string>> $classMap list of available webservice classes 28 28 */ 29 public function process(stubRequest $request, stubSession $session, stub JsonRpcResponse $response, array $classMap);29 public function process(stubRequest $request, stubSession $session, stubResponse $response, array $classMap); 30 30 } 31 31 ?> trunk/src/test/php/net/stubbles/ipo/IPOTestSuite.php
r1391 r1434 66 66 67 67 $suite->addTestFile($dir . '/response/stubCookieTestCase.php'); 68 $suite->addTestFile($dir . '/response/stubDecoratedResponseTestCase.php');69 68 70 69 $suite->addTestFile($dir . '/session/stubAbstractSessionTestCase.php'); trunk/src/test/php/net/stubbles/service/ServiceTestSuite.php
r1366 r1434 28 28 // json-rpc 29 29 $suite->addTestFile($dir . '/jsonrpc/stubJsonRpcProcessorTestCase.php'); 30 $suite->addTestFile($dir . '/jsonrpc/stubJsonRpc ResponseTestCase.php');30 $suite->addTestFile($dir . '/jsonrpc/stubJsonRpcWriterTestCase.php'); 31 31 $suite->addTestFile($dir . '/jsonrpc/subprocessors/stubJsonRpcAbstractGenerateSubProcessorTestCase.php'); 32 32 $suite->addTestFile($dir . '/jsonrpc/subprocessors/stubJsonRpcGenerateProxiesSubProcessorTestCase.php'); trunk/src/test/php/net/stubbles/service/jsonrpc/stubJsonRpcWriterTestCase.php
r1303 r1434 1 1 <?php 2 2 /** 3 * Test for net::stubbles::service::jsonrpc::stubJsonRpc Response.3 * Test for net::stubbles::service::jsonrpc::stubJsonRpcWriter. 4 4 * 5 5 * @author Richard Sternagel … … 8 8 * @subpackage service_jsonrpc_test 9 9 */ 10 stubClassLoader::load('net::stubbles::service::jsonrpc::stubJsonRpc Response');10 stubClassLoader::load('net::stubbles::service::jsonrpc::stubJsonRpcWriter'); 11 11 /** 12 * Tests for net::stubbles::service::jsonrpc::stubJsonRpc Response.12 * Tests for net::stubbles::service::jsonrpc::stubJsonRpcWriter. 13 13 * 14 14 * @package stubbles 15 15 * @subpackage service_jsonrpc_test 16 16 */ 17 class stubJsonRpc ResponseTestCase extends PHPUnit_Framework_TestCase17 class stubJsonRpcWriterTestCase extends PHPUnit_Framework_TestCase 18 18 { 19 /**20 * instance to test21 *22 * @var stubJsonRpcResponse23 */24 protected $jsonRpcResponse;25 /**26 * mocked response instance27 *28 * @var PHPUnit_Framework_MockObject_MockObject29 */30 protected $mockResponse;31 32 /**33 * set up test environment34 */35 public function setUp()36 {37 $this->mockResponse = $this->getMock('stubResponse');38 $this->jsonRpcResponse = new stubJsonRpcResponse($this->mockResponse);39 }40 41 19 /** 42 20 * test sending a fault … … 46 24 public function writeFault() 47 25 { 48 $this->mockResponse->expects($this->once())->method('write')->with($this->equalTo('{"id":"12345","result":null,"error":"Test error message."}')); 49 $this->jsonRpcResponse->writeFault('12345', 'Test error message.'); 26 $this->assertEquals('{"id":"12345","result":null,"error":"Test error message."}', stubJsonRpcWriter::writeFault('12345', 'Test error message.')); 50 27 } 51 28 … … 57 34 public function writeResponseWithString() 58 35 { 59 $this->mockResponse->expects($this->once())->method('write')->with($this->equalTo('{"id":"12345","result":"string","error":null}')); 60 $this->jsonRpcResponse->writeResponse('12345', 'string'); 36 $this->assertEquals('{"id":"12345","result":"string","error":null}', stubJsonRpcWriter::writeResponse('12345', 'string')); 61 37 } 62 38 … … 68 44 public function writeResponseWithBool() 69 45 { 70 $this->mockResponse->expects($this->once())->method('write')->with($this->equalTo('{"id":"12345","result":true,"error":null}')); 71 $this->jsonRpcResponse->writeResponse('12345', true); 46 $this->assertEquals('{"id":"12345","result":true,"error":null}', stubJsonRpcWriter::writeResponse('12345', true)); 72 47 } 73 48 … … 79 54 public function writeResponseWithArray() 80 55 { 81 $this->mockResponse->expects($this->once())->method('write')->with($this->equalTo('{"id":"12345","result":[1,2,3],"error":null}')); 82 $this->jsonRpcResponse->writeResponse('12345', array(1,2,3)); 56 $this->assertEquals('{"id":"12345","result":[1,2,3],"error":null}', stubJsonRpcWriter::writeResponse('12345', array(1,2,3))); 83 57 } 84 58 } trunk/src/test/php/net/stubbles/service/jsonrpc/subprocessors/stubJsonRpcAbstractGenerateSubProcessorTestCase.php
r1361 r1434 21 21 * @param stubRequest $request the current request 22 22 * @param stubSession $session the current session 23 * @param stub JsonRpcResponse$response the current response23 * @param stubResponse $response the current response 24 24 * @param array<string,array<string,string>> $classMap list of available webservice classes 25 25 */ 26 public function process(stubRequest $request, stubSession $session, stub JsonRpcResponse $response, array $classMap)26 public function process(stubRequest $request, stubSession $session, stubResponse $response, array $classMap) 27 27 { 28 28 // intentionally empty trunk/src/test/php/net/stubbles/service/jsonrpc/subprocessors/stubJsonRpcGenerateProxiesSubProcessorTestCase.php
r1361 r1434 91 91 $this->jsonRpcGenerateProxiesSubProcessor->expects($this->never()) 92 92 ->method('handleException'); 93 $this->jsonRpcGenerateProxiesSubProcessor->process($this->mockRequest, $this->mockSession, new stubJsonRpcResponse($this->mockResponse), $this->classMap);93 $this->jsonRpcGenerateProxiesSubProcessor->process($this->mockRequest, $this->mockSession, $this->mockResponse, $this->classMap); 94 94 } 95 95 … … 112 112 ->will($this->returnValue($this->mockProxyGenerator)); 113 113 $this->mockResponse->expects($this->once())->method('write')->with($this->equalTo("stubbles.json.proxy = {};\n\n")); 114 $response = new stubJsonRpcResponse($this->mockResponse);115 114 $this->jsonRpcGenerateProxiesSubProcessor->expects($this->once()) 116 115 ->method('handleException') 117 ->with($this->equalTo($exception, $ response, 'Generation of proxy for TestService failed.'));118 $this->jsonRpcGenerateProxiesSubProcessor->process($this->mockRequest, $this->mockSession, $ response, $this->classMap);116 ->with($this->equalTo($exception, $this->mockResponse, 'Generation of proxy for TestService failed.')); 117 $this->jsonRpcGenerateProxiesSubProcessor->process($this->mockRequest, $this->mockSession, $this->mockResponse, $this->classMap); 119 118 } 120 119 } trunk/src/test/php/net/stubbles/service/jsonrpc/subprocessors/stubJsonRpcGenerateSmdSubProcessorTestCase.php
r1361 r1434 89 89 $this->jsonRpcGenerateSmdSubProcessor->expects($this->never()) 90 90 ->method('handleException'); 91 $this->jsonRpcGenerateSmdSubProcessor->process($this->mockRequest, $this->mockSession, new stubJsonRpcResponse($this->mockResponse), $this->classMap);91 $this->jsonRpcGenerateSmdSubProcessor->process($this->mockRequest, $this->mockSession, $this->mockResponse, $this->classMap); 92 92 } 93 93 … … 115 115 ->will($this->returnValue($this->mockSmdGenerator)); 116 116 $this->mockResponse->expects($this->never())->method('write'); 117 $response = new stubJsonRpcResponse($this->mockResponse);118 117 $this->jsonRpcGenerateSmdSubProcessor->expects($this->once()) 119 118 ->method('handleException') 120 ->with($this->equalTo($exception, $ response, 'Generation of SMD for TestService failed.'));121 $this->jsonRpcGenerateSmdSubProcessor->process($this->mockRequest, $this->mockSession, $ response, $this->classMap);119 ->with($this->equalTo($exception, $this->mockResponse, 'Generation of SMD for TestService failed.')); 120 $this->jsonRpcGenerateSmdSubProcessor->process($this->mockRequest, $this->mockSession, $this->mockResponse, $this->classMap); 122 121 } 123 122 } trunk/src/test/php/net/stubbles/service/jsonrpc/subprocessors/stubJsonRpcGetSubProcessorTestCase.php
r1361 r1434 83 83 $this->jsonRpcGetSubProcessor->process($this->mockRequest, 84 84 $this->mockSession, 85 new stubJsonRpcResponse($this->mockResponse),85 $this->mockResponse, 86 86 $this->classMap 87 87 ); … … 99 99 $this->jsonRpcGetSubProcessor->process($this->mockRequest, 100 100 $this->mockSession, 101 new stubJsonRpcResponse($this->mockResponse),101 $this->mockResponse, 102 102 $this->classMap 103 103 ); … … 115 115 $this->jsonRpcGetSubProcessor->process($this->mockRequest, 116 116 $this->mockSession, 117 new stubJsonRpcResponse($this->mockResponse),117 $this->mockResponse, 118 118 $this->classMap 119 119 ); … … 131 131 $this->jsonRpcGetSubProcessor->process($this->mockRequest, 132 132 $this->mockSession, 133 new stubJsonRpcResponse($this->mockResponse),133 $this->mockResponse, 134 134 $this->classMap 135 135 ); … … 147 147 $this->jsonRpcGetSubProcessor->process($this->mockRequest, 148 148 $this->mockSession, 149 new stubJsonRpcResponse($this->mockResponse),149 $this->mockResponse, 150 150 $this->classMap 151 151 ); … … 163 163 $this->jsonRpcGetSubProcessor->process($this->mockRequest, 164 164 $this->mockSession, 165 new stubJsonRpcResponse($this->mockResponse),165 $this->mockResponse, 166 166 $this->classMap 167 167 ); … … 179 179 $this->jsonRpcGetSubProcessor->process($this->mockRequest, 180 180 $this->mockSession, 181 new stubJsonRpcResponse($this->mockResponse),181 $this->mockResponse, 182 182 $this->classMap 183 183 ); … … 195 195 $this->jsonRpcGetSubProcessor->process($this->mockRequest, 196 196 $this->mockSession, 197 new stubJsonRpcResponse($this->mockResponse),197 $this->mockResponse, 198 198 $this->classMap 199 199 ); … … 211 211 $this->jsonRpcGetSubProcessor->process($this->mockRequest, 212 212 $this->mockSession, 213 new stubJsonRpcResponse($this->mockResponse),213 $this->mockResponse, 214 214 $this->classMap 215 215 ); … … 228 228 $this->jsonRpcGetSubProcessor->process($this->mockRequest, 229 229 $this->mockSession, 230 new stubJsonRpcResponse($this->mockResponse),230 $this->mockResponse, 231 231 $this->classMap 232 232 ); trunk/src/test/php/net/stubbles/service/jsonrpc/subprocessors/stubJsonRpcPostSubProcessorTestCase.php
r1361 r1434 83 83 $this->jsonRpcPostSubProcessor->process($this->mockRequest, 84 84 $this->mockSession, 85 new stubJsonRpcResponse($this->mockResponse),85 $this->mockResponse, 86 86 $this->classMap 87 87 ); … … 99 99 $this->jsonRpcPostSubProcessor->process($this->mockRequest, 100 100 $this->mockSession, 101 new stubJsonRpcResponse($this->mockResponse),101 $this->mockResponse, 102 102 $this->classMap 103 103 ); … … 115 115 $this->jsonRpcPostSubProcessor->process($this->mockRequest, 116 116 $this->mockSession, 117 new stubJsonRpcResponse($this->mockResponse),117 $this->mockResponse, 118 118 $this->classMap 119 119 ); … … 131 131 $this->jsonRpcPostSubProcessor->process($this->mockRequest, 132 132 $this->mockSession, 133 new stubJsonRpcResponse($this->mockResponse),133 $this->mockResponse, 134 134 $this->classMap 135 135 ); … … 147 147 $this->jsonRpcPostSubProcessor->process($this->mockRequest, 148 148 $this->mockSession, 149 new stubJsonRpcResponse($this->mockResponse),149 $this->mockResponse, 150 150 $this->classMap 151 151 ); … … 163 163 $this->jsonRpcPostSubProcessor->process($this->mockRequest, 164 164 $this->mockSession, 165 new stubJsonRpcResponse($this->mockResponse),165 $this->mockResponse, 166 166 $this->classMap 167 167 ); … … 179 179 $this->jsonRpcPostSubProcessor->process($this->mockRequest, 180 180 $this->mockSession, 181 new stubJsonRpcResponse($this->mockResponse),181 $this->mockResponse, 182 182 $this->classMap 183 183 ); … … 195 195 $this->jsonRpcPostSubProcessor->process($this->mockRequest, 196 196 $this->mockSession, 197 new stubJsonRpcResponse($this->mockResponse),197 $this->mockResponse, 198 198 $this->classMap 199 199 ); … … 211 211 $this->jsonRpcPostSubProcessor->process($this->mockRequest, 212 212 $this->mockSession, 213 new stubJsonRpcResponse($this->mockResponse),213 $this->mockResponse, 214 214 $this->classMap 215 215 ); … … 233 233 $this->jsonRpcPostSubProcessor->process($this->mockRequest, 234 234 $this->mockSession, 235 new stubJsonRpcResponse($this->mockResponse),236 $this->classMap 237 ); 238 $this->jsonRpcPostSubProcessor->process($this->mockRequest, 239 $this->mockSession, 240 new stubJsonRpcResponse($this->mockResponse),235 $this->mockResponse, 236 $this->classMap 237 ); 238 $this->jsonRpcPostSubProcessor->process($this->mockRequest, 239 $this->mockSession, 240 $this->mockResponse, 241 241 $this->classMap 242 242 ); … … 254 254 $this->jsonRpcPostSubProcessor->process($this->mockRequest, 255 255 $this->mockSession, 256 new stubJsonRpcResponse($this->mockResponse),256 $this->mockResponse, 257 257 $this->classMap 258 258 ); … … 272 272 $this->jsonRpcPostSubProcessor->process($this->mockRequest, 273 273 $this->mockSession, 274 new stubJsonRpcResponse($this->mockResponse),274 $this->mockResponse, 275 275 $this->classMap 276 276 ); … … 289 289 $this->jsonRpcPostSubProcessor->process($this->mockRequest, 290 290 $this->mockSession, 291 new stubJsonRpcResponse($this->mockResponse),291 $this->mockResponse, 292 292 $this->classMap 293 293 );
