Changeset 368
- Timestamp:
- 03/13/07 13:55:51 (2 years ago)
- Files:
-
- trunk/src/main/php/net/stubbles/websites/processors/stubDefaultProcessorResolver.php (modified) (1 diff)
- trunk/src/main/php/net/stubbles/websites/processors/stubProcessorResolver.php (modified) (1 diff)
- trunk/src/main/php/net/stubbles/websites/processors/stubSimpleProcessorResolver.php (modified) (1 diff)
- trunk/src/test/php/net/stubbles/websites/processors/stubDefaultProcessorResolverTestCase.php (modified) (1 diff)
- trunk/src/test/php/net/stubbles/websites/processors/stubSimpleProcessorResolverTestCase.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/main/php/net/stubbles/websites/processors/stubDefaultProcessorResolver.php
r315 r368 70 70 71 71 /** 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 /** 72 82 * resolves the request and creates the appropriate processor 73 83 * trunk/src/main/php/net/stubbles/websites/processors/stubProcessorResolver.php
r315 r368 30 30 31 31 /** 32 * returns the page factory delivered within the constructor 33 * 34 * @return stubPageFactory 35 */ 36 public function getPageFactory(); 37 38 /** 32 39 * resolves the request and creates the appropriate processor 33 40 * trunk/src/main/php/net/stubbles/websites/processors/stubSimpleProcessorResolver.php
r315 r368 49 49 $this->pageFactory = $pageFactory; 50 50 } 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 } 51 61 52 62 /** trunk/src/test/php/net/stubbles/websites/processors/stubDefaultProcessorResolverTestCase.php
r315 r368 74 74 $this->defaultProcessorResolver->addProcessor('baz', '_test.BazProcessor'); 75 75 $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); 76 85 } 77 86 trunk/src/test/php/net/stubbles/websites/processors/stubSimpleProcessorResolverTestCase.php
r315 r368 67 67 68 68 /** 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 /** 69 78 * assure that the default processor is returned and it has all required classes 70 79 */
