| [ Index ] |
PHP Cross Reference of Web Application Component Toolkit |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * @package WACT_TESTS 4 * @version $Id: textnode.test.php,v 1.7 2004/11/12 21:25:15 jeffmoore Exp $ 5 */ 6 /** 7 * Includes 8 */ 9 require_once TEST_CASES . '/template/compiler/compilerdirectivetag.test.php'; 10 require_once WACT_ROOT . 'template/compiler/textnode.inc.php'; 11 12 /** 13 * @package WACT_TESTS 14 */ 15 class TextNodeTestCase extends CompilerDirectiveTagTestCase { 16 function TextNodeTestCase($name = 'TextNode test cases') { 17 parent::CompilerDirectiveTagTestCase($name); 18 } 19 function setUp() { 20 $this->component = & new TextNode('test'); 21 } 22 function tearDown() { 23 unset ( $this->component ); 24 parent::tearDown(); 25 } 26 function testGenerate() { 27 // BAD TEST: see bug #896626 28 $MockCode = & new MockCodeWriter($this); 29 $MockCode->expectOnce('writeHTML', array('test')); 30 $this->component->generate($MockCode); 31 } 32 } 33 34 ?>
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 |