| [ Index ] |
PHP Cross Reference of Web Application Component Toolkit |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * @package WACT_TESTS 4 * @version $Id: dictionary.test.php,v 1.4 2004/11/18 04:22:50 jeffmoore Exp $ 5 */ 6 require_once WACT_ROOT . 'common.inc.php'; 7 require_once WACT_ROOT . 'template/compiler/property/dictionary.inc.php'; 8 /** 9 * @package WACT_TESTS 10 * PropertyInfo classes have no methods so use a simple class to test 11 */ 12 13 /** 14 * @package WACT_TESTS 15 */ 16 class PropertyDictionaryTestCase extends UnitTestCase { 17 function PropertyDictionaryTestCase($name = 'PropertyDictionary test cases') { 18 $this->UnitTestCase($name); 19 } 20 function setUp() { 21 $this->dict = & new PropertyDictionary(); 22 $this->PropertyInfo =& new PropertyInfo('name', 'TESTtag', 'NoClass'); 23 $this->dict->_registerProperty($this->PropertyInfo); 24 } 25 function tearDown() { 26 unset ( $this->dict ); 27 unset ( $this->PropertyInfo ); 28 } 29 function testGetInstance() { 30 $this->assertIsA($this->dict->getInstance(),'PropertyDictionary'); 31 } 32 function testGetPropertyList() { 33 $testTagList = array(&$this->PropertyInfo); 34 $this->assertEqual($this->dict->getPropertyList('testtag'), $testTagList); 35 } 36 } 37 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Sun Nov 28 19:36:09 2004 | Cross-referenced by PHPXref 0.5 |