| [ 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 lmb_require('limb/view/src/lmbPHPView.class.php'); 10 11 class lmbPHPViewTest extends UnitTestCase 12 { 13 function testRender() 14 { 15 file_put_contents($file = LIMB_VAR_DIR . '/tpl.php', '<?php echo "$msg, $name"; ?>'); 16 $template = new lmbPHPView($file); 17 $template->set('msg', 'Hello'); 18 $template->set('name', 'world'); 19 $this->assertEqual($template->out(), 'Hello, world'); 20 unlink($file); 21 } 22 } 23 24 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Tue Dec 2 03:54:09 2008 | Cross-referenced by PHPXref 0.7 |