Пример #1
0
 /**
  * Clears all expression types
  */
 public function clearTypes()
 {
     $this->types = array();
     $this->typesCount = array();
     $this->pluginInstances = array();
     $this->plugins = array();
     $this->events->clear();
     Expression\Plugin::$indexes = array();
     Expression\Plugin::$customClasses = array();
     Expression\BlockType\Header::$ids = array();
 }
 public function __construct(&$parser)
 {
     Header::$ids = array();
     $this->source = "!+foo\n" . "heading text section\n" . "!-foo\n" . "heading text section";
     $this->expected = "<h1 id='foo'>foo<a href='#'>[+]</a></h1>" . "heading text section" . "<h1 id='foo1'>foo<a href='#'>[-]</a></h1>" . "heading text section";
 }
Пример #3
0
 public function __construct(&$parser)
 {
     Header::$ids = array();
     $this->source = "! foo\n" . "!!foo\n" . "!! foo";
     $this->expected = "<h1 id='foo'><span class='whitespace'> </span>foo</h1>" . "<h2 id='foo1'>foo</h2>" . "<h2 id='foo2'><span class='whitespace'> </span>foo</h2>";
 }