Changeset 277
- Timestamp:
- 02/19/07 15:18:12 (2 years ago)
- Files:
-
- trunk/src/main/php/net/stubbles/websites/stubPage.php (modified) (1 diff)
- trunk/src/test/php/net/stubbles/websites (added)
- trunk/src/test/php/net/stubbles/websites/WebsitesTestSuite.php (added)
- trunk/src/test/php/net/stubbles/websites/stubPageTestCase.php (added)
- trunk/src/test/run.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/main/php/net/stubbles/websites/stubPage.php
r267 r277 49 49 $this->properties = $properties; 50 50 } 51 52 /** 53 * checks whether a property for the page exists 54 * 55 * @param string $name name of the property 56 * @return bool 57 */ 58 public function hasProperty($name) 59 { 60 return isset($this->properties[$name]); 61 } 51 62 52 63 /** 53 * returns the property 64 * returns the property or null if it does not exist 54 65 * 55 * @param string $name name of the property66 * @param string $name name of the property 56 67 * @return scalar 57 68 */ 58 69 public function getProperty($name) 59 70 { 60 return $this->properties[$name]; 71 if (isset($this->properties[$name]) == true) { 72 return $this->properties[$name]; 73 } 74 75 return null; 61 76 } 62 77 trunk/src/test/run.php
r223 r277 38 38 $testSuite->addTestFile(TEST_SRC_PATH . '/php/net/stubbles/reflection/ReflectionTestSuite.php'); 39 39 $testSuite->addTestFile(TEST_SRC_PATH . '/php/net/stubbles/util/UtilTestSuite.php'); 40 $testSuite->addTestFile(TEST_SRC_PATH . '/php/net/stubbles/websites/WebsitesTestSuite.php'); 40 41 #$testSuite->addTestFile(TEST_SRC_PATH . '/php/net/stubbles/websites/variantmanager/VariantManagerTestSuite.php'); 41 42 $testSuite->addTestFile(TEST_SRC_PATH . '/php/net/stubbles/xml/XMLTestSuite.php');
