| [ 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/tests/cases/compiler/compile_tree_node/WactCompileTreeNodeTest.class.php'); 11 12 class WactPHPNodeTest extends WactCompileTreeNodeTest 13 { 14 function _createNode() 15 { 16 $location = new WactSourceLocation('my_file', 10); 17 return new WactPHPNode($location, 'test'); 18 } 19 20 function testLocationPassed() 21 { 22 $this->assertEqual($this->component->getTemplateFile(), 'my_file'); 23 $this->assertEqual($this->component->getTemplateLine(), 10); 24 } 25 26 function testGenerate() 27 { 28 $code_writer = new WactCodeWriter(); 29 $this->component->generate($code_writer); 30 $this->assertEqual($code_writer->renderCode(), '<?php test ?>'); 31 } 32 } 33 ?>
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 |