| [ 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 define('SOME_TESTING_FILTER_CONSTANT', 'value'); 11 12 class WactConstantFilterTest extends WactTemplateTestCase 13 { 14 function testSimple() 15 { 16 $template = '{$"SOME_TESTING_FILTER_CONSTANT"|const}'; 17 18 $this->registerTestingTemplate('/core/constant_filter/simple.html', $template); 19 20 $page = $this->initTemplate('/core/constant_filter/simple.html'); 21 22 $this->assertEqual($page->capture(), 'value'); 23 } 24 25 function testDBE() 26 { 27 $template = '{$var|const}'; 28 29 $this->registerTestingTemplate('/core/constant_filter/simpledbe.html', $template); 30 31 $page = $this->initTemplate('/core/constant_filter/simpledbe.html'); 32 $page->set('var', 'SOME_TESTING_FILTER_CONSTANT'); 33 34 $this->assertEqual($page->capture(), 'value'); 35 } 36 } 37 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Thu Jan 8 04:06:23 2009 | Cross-referenced by PHPXref 0.7 |