[ Index ]

PHP Cross Reference of Limb3

title

Body

[close]

/wact/tests/cases/tags/core/ -> WactCoreRuntimeContentTagTest.class.php (source)

   1  <?php
   2  /*
   3   * Limb PHP Framework
   4   *
   5   * @link http://limb-project.com 
   6   * @copyright  Copyright &copy; 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/widgets/widgets.inc.php';
  11  
  12  class WactCoreRuntimeContentTagTest extends WactTemplateTestCase
  13  {
  14    function testRuntimeContent()
  15    {
  16      $template = '-<core:runtimecontent id="slot"/>-';
  17  
  18      $this->registerTestingTemplate('/tags/core/runtimecontent/test.html', $template);
  19      $page = $this->initTemplate('/tags/core/runtimecontent/test.html');
  20  
  21      $holder = $page->getChild('slot');
  22      $holder->addChild(new WactTextWidget('inserted'));
  23  
  24      $output = $page->capture();
  25      $this->assertEqual($output, '-inserted-');
  26    }
  27  }
  28  ?>


Generated: Thu Jan 8 04:06:23 2009 Cross-referenced by PHPXref 0.7