Changeset 1443
- Timestamp:
- 03/20/08 00:17:48 (4 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/main/php/net/stubbles/service/jsonrpc/stubJsonRpcProcessor.php
r1435 r1443 35 35 * constructor 36 36 * 37 * @param stubRequest $request the current request 38 * @param stubSession $session the current session 39 * @param stubResponse $response the current response 40 * @param stubPageFactory $pageFactory page factory to use to read the page configuration 37 * @param stubRequest $request the current request 38 * @param stubSession $session the current session 39 * @param stubResponse $response the current response 41 40 */ 42 public function __construct(stubRequest $request, stubSession $session, stubResponse $response , stubPageFactory $pageFactory)41 public function __construct(stubRequest $request, stubSession $session, stubResponse $response) 43 42 { 44 parent::__construct($request, $session, $response , $pageFactory);43 parent::__construct($request, $session, $response); 45 44 $this->configFile = stubConfig::getConfigPath() . DIRECTORY_SEPARATOR . stubRegistry::getConfig(self::KEY_SERVICE_FILE, 'json-rpc-service.ini'); 46 45 } trunk/src/test/php/net/stubbles/service/jsonrpc/stubJsonRpcProcessorTestCase.php
r1435 r1443 61 61 { 62 62 /** 63 * mocked page factory64 *65 * @var PHPUnit_Framework_MockObject_MockObject66 */67 protected $mockPageFactory;68 /**69 63 * mocked request to use 70 64 * … … 93 87 $this->mockSession = $this->getMock('stubSession'); 94 88 $this->mockResponse = $this->getMock('stubResponse'); 95 $this->mockPageFactory = $this->getMock('stubPageFactory');96 97 89 } 98 90 … … 111 103 array($this->mockRequest, 112 104 $this->mockSession, 113 $this->mockResponse, 114 $this->mockPageFactory 105 $this->mockResponse 115 106 ) 116 107 ); … … 136 127 $jsonRpcProcessor = new TeststubJsonRpcProcessor($this->mockRequest, 137 128 $this->mockSession, 138 $this->mockResponse, 139 $this->mockPageFactory 129 $this->mockResponse 140 130 ); 141 131 $jsonRpcProcessor->setConfigFile(vfsStream::url('config/doesNotExist.ini')); … … 159 149 $jsonRpcProcessor = new TeststubJsonRpcProcessor($this->mockRequest, 160 150 $this->mockSession, 161 $this->mockResponse, 162 $this->mockPageFactory 151 $this->mockResponse 163 152 ); 164 153 $jsonRpcProcessor->setConfigFile(vfsStream::url('config/json-rpc-service.ini.ini')); … … 180 169 $jsonRpcProcessor = new TeststubJsonRpcProcessor($this->mockRequest, 181 170 $this->mockSession, 182 $this->mockResponse, 183 $this->mockPageFactory 171 $this->mockResponse 184 172 ); 185 173 $this->assertEquals('net::stubbles::service::jsonrpc::subprocessors::stubJsonRpcPostSubProcessor', $jsonRpcProcessor->callGetSubProcessorClassName()); … … 197 185 $jsonRpcProcessor = new TeststubJsonRpcProcessor($this->mockRequest, 198 186 $this->mockSession, 199 $this->mockResponse, 200 $this->mockPageFactory 187 $this->mockResponse 201 188 ); 202 189 $this->assertEquals('net::stubbles::service::jsonrpc::subprocessors::stubJsonRpcGenerateProxiesSubProcessor', $jsonRpcProcessor->callGetSubProcessorClassName()); … … 214 201 $jsonRpcProcessor = new TeststubJsonRpcProcessor($this->mockRequest, 215 202 $this->mockSession, 216 $this->mockResponse, 217 $this->mockPageFactory 203 $this->mockResponse 218 204 ); 219 205 $this->assertEquals('net::stubbles::service::jsonrpc::subprocessors::stubJsonRpcGenerateSmdSubProcessor', $jsonRpcProcessor->callGetSubProcessorClassName()); … … 231 217 $jsonRpcProcessor = new TeststubJsonRpcProcessor($this->mockRequest, 232 218 $this->mockSession, 233 $this->mockResponse, 234 $this->mockPageFactory 219 $this->mockResponse 235 220 ); 236 221 $this->assertEquals('net::stubbles::service::jsonrpc::subprocessors::stubJsonRpcGetSubProcessor', $jsonRpcProcessor->callGetSubProcessorClassName());
