Changeset 935

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

RouterTest? now uses mocked AkRequest?.

Files:

Legend:

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

    r763 r935  
    5050    function testMatchThrowsAnExcpetionIfRequestCannotBeSolved() 
    5151    { 
    52         $Request = new AkRequest(); 
     52        $Request = $this->getMock('AkRequest',array(),array(),'',false); 
    5353        $PersonRoute = $this->getMock('AkRoute',array(),array('person/:name')); 
    5454        $PersonRoute->expects($this->once()) 
     
    6565    function testMatchTraversesAllRegisteredRoutesIfFalseIsReturned() 
    6666    { 
    67         $Request = new AkRequest(); 
     67        $Request = $this->getMock('AkRequest',array(),array(),'',false); 
    6868        $PersonRoute = $this->getMock('AkRoute',array(),array('person/:name')); 
    6969        $PersonRoute->expects($this->once())