[ Index ]

PHP Cross Reference of Limb3

title

Body

[close]

/wact/tests/cases/compiler/parser/ -> WactBaseParsingStateTestCase.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/compiler/templatecompiler.inc.php';
  11  
  12  Mock::generate('WactSourceFileParser','MockWactSourceFileParser');
  13  Mock::generate('WactTreeBuilder','MockTreeBuilder');
  14  Mock::generate('WactTagDictionary','MockWactTagDictionary');
  15  Mock::generate('WactRuntimeComponentTag','MockWactRuntimeComponentTag');
  16  Mock::generate('WactRuntimeComponentHTMLTag','MockWactRuntimeComponentHTMLTag');
  17  
  18  class WactBaseParsingStateTestCase extends UnitTestCase
  19  {
  20    function testGetAttributeString()
  21    {
  22      $attrs = array('foo'=>'bar');
  23      $this->assertIdentical($this->state->getAttributeString($attrs), ' foo="bar"');
  24      $attrs = array();
  25      $this->assertIdentical($this->state->getAttributeString($attrs), '');
  26    }
  27  
  28    function testGetAttributeStringRunat()
  29    {
  30      $attrs = array('foo'=>'bar', 'runat'=>'client');
  31      $this->assertIdentical($this->state->getAttributeString($attrs), ' foo="bar"');
  32    }
  33  }
  34  
  35  SimpleTestOptions :: ignore('WactBaseParsingStateTestCase');
  36  
  37  ?>


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