Changeset 368

Show
Ignore:
Timestamp:
03/13/07 13:55:51 (2 years ago)
Author:
mikey
Message:

added net.stubbles.websites.processors.stubProcessorResolver::getPageFactory()

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/main/php/net/stubbles/websites/processors/stubDefaultProcessorResolver.php

    r315 r368  
    7070     
    7171    /** 
     72     * returns the page factory delivered within the constructor 
     73     * 
     74     * @return  stubPageFactory 
     75     */ 
     76    public function getPageFactory() 
     77    { 
     78        return $this->pageFactory; 
     79    } 
     80     
     81    /** 
    7282     * resolves the request and creates the appropriate processor 
    7383     * 
  • trunk/src/main/php/net/stubbles/websites/processors/stubProcessorResolver.php

    r315 r368  
    3030     
    3131    /** 
     32     * returns the page factory delivered within the constructor 
     33     * 
     34     * @return  stubPageFactory 
     35     */ 
     36    public function getPageFactory(); 
     37     
     38    /** 
    3239     * resolves the request and creates the appropriate processor 
    3340     * 
  • trunk/src/main/php/net/stubbles/websites/processors/stubSimpleProcessorResolver.php

    r315 r368  
    4949        $this->pageFactory = $pageFactory; 
    5050    } 
     51     
     52    /** 
     53     * returns the page factory delivered within the constructor 
     54     * 
     55     * @return  stubPageFactory 
     56     */ 
     57    public function getPageFactory() 
     58    { 
     59        return $this->pageFactory; 
     60    } 
    5161 
    5262    /** 
  • trunk/src/test/php/net/stubbles/websites/processors/stubDefaultProcessorResolverTestCase.php

    r315 r368  
    7474        $this->defaultProcessorResolver->addProcessor('baz', '_test.BazProcessor'); 
    7575        $this->defaultProcessorResolver->setDefaultProcessor('foo'); 
     76    } 
     77     
     78    /** 
     79     * assure that the page factory stays the same 
     80     */ 
     81    public function testGetPageFactory() 
     82    { 
     83        $pageFactory = $this->defaultProcessorResolver->getPageFactory(); 
     84        $this->assertReference($pageFactory, $this->mockPageFactory); 
    7685    } 
    7786     
  • trunk/src/test/php/net/stubbles/websites/processors/stubSimpleProcessorResolverTestCase.php

    r315 r368  
    6767     
    6868    /** 
     69     * assure that the page factory stays the same 
     70     */ 
     71    public function testGetPageFactory() 
     72    { 
     73        $pageFactory = $this->simpleProcessorResolver->getPageFactory(); 
     74        $this->assertReference($pageFactory, $this->mockPageFactory); 
     75    } 
     76     
     77    /** 
    6978     * assure that the default processor is returned and it has all required classes 
    7079     */