| [ Index ] |
PHP Cross Reference of Limb3 |
[Summary view] [Print] [Text view]
1 <?php 2 /* 3 * Limb PHP Framework 4 * 5 * @link http://limb-project.com 6 * @copyright Copyright © 2004-2007 BIT(http://bit-creative.com) 7 * @license LGPL http://www.gnu.org/copyleft/lesser.html 8 */ 9 10 require_once('limb/wact/src/WactTemplate.class.php'); 11 require_once('limb/wact/src/compiler/templatecompiler.inc.php'); 12 require_once('limb/wact/tests/cases/WactTestTemplateConfig.class.php'); 13 require_once('limb/wact/tests/cases/WactTestTemplateLocator.class.php'); 14 15 class WactTemplateTestCase extends UnitTestCase 16 { 17 protected $default_config; 18 protected $default_locator; 19 20 function setUp() 21 { 22 $this->default_config = new WactTestTemplateConfig(array('scan_directories' => array('limb/wact/src/tags/'), 23 'cache_dir' => WACT_CACHE_DIR, 24 'force_scan' => 1, 25 'force_compile' => 1, 26 'sax_filters' => array())); 27 28 $this->default_locator = new WactTestTemplateLocator($this->default_config); 29 $this->initWactDictionaries(); 30 } 31 32 function initTemplate($file_name) 33 { 34 return new WactTemplate($file_name, $this->default_config, $this->default_locator); 35 } 36 37 public function registerTestingTemplate($file_path, $template, $file_name = '') { 38 $this->default_locator->registerTestingTemplate($file_path, $template, $file_name); 39 } 40 41 function tearDown() 42 { 43 $this->default_locator->clearTestingTemplates(); 44 } 45 46 function initWactDictionaries() 47 { 48 WactDictionaryHolder :: initialize($this->default_config); 49 } 50 } 51 52 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Mon Dec 1 03:56:46 2008 | Cross-referenced by PHPXref 0.7 |