| [ Index ] |
PHP Cross Reference of Web Application Component Toolkit |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * @package WACT_TESTS 4 * @version $Id: notags.test.php,v 1.2 2004/11/12 21:25:18 jeffmoore Exp $ 5 */ 6 require_once WACT_ROOT . 'template/template.inc.php'; 7 8 /** 9 * @package WACT_TESTS 10 */ 11 class NoTagsFilterTestCase extends UnitTestCase { 12 function NoTagsFilterTestCase($name = 'NoTagsFilterTestCase') { 13 $this->UnitTestCase($name); 14 } 15 16 function tearDown() { 17 ClearTestingTemplates(); 18 } 19 20 function testNoTagsVariable() { 21 $Template = '{$test|notags}'; 22 RegisterTestingTemplate('/filters/core/notags/var.html', $Template); 23 24 $Page =& new Template('/filters/core/notags/var.html'); 25 $Page->set('test', '<hello>dude!'); 26 $output = $Page->capture(); 27 $this->assertEqual($output, 'dude!'); 28 } 29 30 function testNoTagsSet() { 31 $Template = '<core:SET test="<hello>dude!">{$test|notags}'; 32 RegisterTestingTemplate('/filters/core/notags/set.html', $Template); 33 34 $Page =& new Template('/filters/core/notags/set.html'); 35 $output = $Page->capture(); 36 $this->assertEqual($output, 'dude!'); 37 } 38 39 } 40 ?>
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 |