| [ Index ] |
PHP Cross Reference of Limb3 |
[Summary view] [Print] [Text view]
1 <?php 2 require_once('limb/view/src/wact/lmbWactTemplateConfig.class.php'); 3 require_once('limb/wact/tests/cases/WactTestTemplateLocator.class.php'); 4 require_once('limb/core/src/lmbCollection.class.php'); 5 require_once('limb/wact/src/WactTemplate.class.php'); 6 require_once('limb/wact/src/compiler/WactDictionaryHolder.class.php'); 7 require_once('limb/validation/src/lmbErrorList.class.php'); 8 9 class lmbWactTestCase extends UnitTestCase 10 { 11 protected $toolkit; 12 protected $locator; 13 protected $config; 14 15 function setUp() 16 { 17 $this->toolkit = lmbToolkit :: save(); 18 19 $this->compiled_dir = LIMB_VAR_DIR . '/compiled'; 20 $this->config = new lmbWactTemplateConfig($this->compiled_dir); 21 $this->locator = new WactTestTemplateLocator($this->config); 22 23 $this->initWactDictionaries($this->config); 24 } 25 26 function initTemplate($template_file) 27 { 28 return new WactTemplate($template_file, $this->config, $this->locator); 29 } 30 31 function tearDown() 32 { 33 $this->locator->clearTestingTemplates(); 34 lmbToolkit :: restore(); 35 } 36 37 function registerTestingTemplate($file, $template) 38 { 39 $this->locator->registerTestingTemplate($file, $template); 40 } 41 42 function initWactDictionaries($config) 43 { 44 WactDictionaryHolder :: initialize($config); 45 } 46 } 47 48 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Sat Sep 6 04:46:52 2008 | Cross-referenced by PHPXref 0.7 |