Changeset 675
- Timestamp:
- 05/27/07 19:27:46 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/test/php/net/stubbles/service/jsonrpc/util/stubJsonRpcProxyGeneratorTestCase.php
r606 r675 20 20 * assure that values are returned as expected 21 21 */ 22 public function testGeneration()23 {24 $generator = new stubJsonRpcProxyGenerator('http://localhost/');25 $code = $generator->generateJavascriptProxy('net.stubbles.examples.service.MathService', 'MathService');26 $expected = "function MathService(clientObj) {22 public function testGeneration() 23 { 24 $generator = new stubJsonRpcProxyGenerator('http://localhost/'); 25 $code = $generator->generateJavascriptProxy('net.stubbles.examples.service.MathService', 'MathService'); 26 $expected = "function MathService(clientObj) { 27 27 this.dispatcher = new stubbles.json.rpc.Client(clientObj, 'http://localhost/'); 28 28 } … … 30 30 return this.dispatcher.doCall('MathService.add', arguments); 31 31 } 32 MathService.prototype.throwException = function() { 33 return this.dispatcher.doCall('MathService.throwException', arguments); 34 } 32 35 "; 33 $this->assertEqual($expected, $code);34 }36 $this->assertEqual($expected, $code); 37 } 35 38 } 36 39 ?>
