Changeset 1503
- Timestamp:
- 04/06/08 01:43:54 (1 month ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/main/php/net/stubbles/websites/memphis/stubMemphisIncludeFilePageElement.php
r1362 r1503 76 76 public function getCacheVars() 77 77 { 78 if (null === $this->source) { 79 return array(); 80 } 81 78 82 return array('source' => $this->source); 79 83 } … … 86 90 public function getUsedFiles() 87 91 { 92 if (null === $this->source) { 93 return array(); 94 } 95 88 96 return array($this->source); 89 97 } trunk/src/test/php/net/stubbles/websites/memphis/stubMemphisIncludeFilePageElementTestCase.php
r1500 r1503 73 73 public function cachingMethods() 74 74 { 75 $this->assertEquals(array( 'source' => null), $this->includeFilePageElement->getCacheVars());76 $this->assertEquals(array( null), $this->includeFilePageElement->getUsedFiles());75 $this->assertEquals(array(), $this->includeFilePageElement->getCacheVars()); 76 $this->assertEquals(array(), $this->includeFilePageElement->getUsedFiles()); 77 77 $this->includeFilePageElement->setSource(TEST_SRC_PATH . '/resources/contentFile.txt'); 78 78 $this->assertEquals(array('source' => TEST_SRC_PATH . '/resources/contentFile.txt'), $this->includeFilePageElement->getCacheVars());
