| [ 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/src/components/form/form.inc.php'; 11 12 class WactPasswordInputTagTest extends WactTemplateTestCase 13 { 14 function testNotGenerateValue() 15 { 16 $template = '<form id="testForm" runat="server">'. 17 '<input type="password" id="test" name="myInput" runat="server"/>'. 18 '</form>'; 19 20 $this->registerTestingTemplate('/components/form/inputpassword/not_generate_value.html', $template); 21 22 $page = $this->initTemplate('/components/form/inputpassword/not_generate_value.html'); 23 24 $form = $page->getChild('testForm'); 25 $form->set('myInput', 'secret'); 26 27 $expected = '<form id="testForm"><input type="password" id="test" name="myInput" /></form>'; 28 $this->assertEqual($page->capture(), $expected); 29 } 30 } 31 ?>
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 |