Changeset 675

Show
Ignore:
Timestamp:
05/27/07 19:27:46 (1 year ago)
Author:
schst
Message:

Fixed testcase, replaced tabs with spaces

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/test/php/net/stubbles/service/jsonrpc/util/stubJsonRpcProxyGeneratorTestCase.php

    r606 r675  
    2020     * assure that values are returned as expected 
    2121     */ 
    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) { 
    2727 this.dispatcher = new stubbles.json.rpc.Client(clientObj, 'http://localhost/'); 
    2828} 
     
    3030  return this.dispatcher.doCall('MathService.add', arguments); 
    3131} 
     32MathService.prototype.throwException = function() { 
     33  return this.dispatcher.doCall('MathService.throwException', arguments); 
     34} 
    3235"; 
    33        $this->assertEqual($expected, $code); 
    34    
     36        $this->assertEqual($expected, $code); 
     37   
    3538} 
    3639?>