[ Index ]

PHP Cross Reference of Limb3

title

Body

[close]

/wact/tests/cases/compiler/tag_node/ -> WactSilentCompilerTagTest.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/tests/cases/compiler/tag_node/WactCompilerTagTest.class.php';
  11  
  12  Mock :: generatePartial('WactSilentCompilerTag','WactSilentCompilerTagTestVersion',
  13      array('generateContent'));
  14  
  15  class WactSilentCompilerTagTest extends WactCompilerTagTest
  16  {
  17    function _createNode()
  18    {
  19      return new WactSilentCompilerTag($this->source_location, 'test', $this->tag_info);
  20    }
  21  
  22    function testGenerate()
  23    {
  24      $code_writer = new WactCodeWriter();
  25      $this->component->generate($code_writer);
  26      $this->assertEqual($code_writer->renderCode(), '');
  27    }
  28  
  29    function testGenerateNow()
  30    {
  31      $component = new WactSilentCompilerTagTestVersion();
  32      $component->expectCallCount('generateContent', 1);
  33      $code_writer = new MockWactCodeWriter();
  34      $component->generateNow($code_writer);
  35    }
  36  }
  37  ?>


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