Changeset 937

Show
Ignore:
Timestamp:
07/23/08 18:37:17 (3 months ago)
Author:
kaste
Message:

Deleted some unused lines from UrlTest? where we mock a Request but dont use em.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/new-router/test/unit2/AkRouter/tests/UrlTest.php

    r800 r937  
    4747    function testRelativeUrlPart() 
    4848    { 
    49         $Request = $this->getMock('AkRequest',array('getRelativeUrlRoot')); 
    50         $Request->expects($this->any()) 
    51                 ->method('getRelativeUrlRoot') 
    52                 ->will($this->returnValue('/subfolder')); 
    53                  
    5449        $url = new AkUrl('/author/martin'); 
    5550        $url->setOptions(array('skip_relative_url_root'=>false,'relative_url_root'=>'/subfolder')); 
     
    7974    function createUrl($path,$query='') 
    8075    { 
    81         $Request = $this->getMock('AkRequest',array('getRelativeUrlRoot','getProtocol','getHostWithPort')); 
    82         $Request->expects($this->any()) 
    83                 ->method('getRelativeUrlRoot') 
    84                 ->will($this->returnValue('')); 
    85         $Request->expects($this->any()) 
    86                 ->method('getProtocol') 
    87                 ->will($this->returnValue('http')); 
    88         $Request->expects($this->any()) 
    89                 ->method('getHostWithPort') 
    90                 ->will($this->returnValue('localhost')); 
    9176        $url = new AkUrl($path,$query); 
    9277        $url->setOptions(array('relative_url_root'=>'','protocol'=>'http','host'=>'localhost'));