/** * 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) { Expression\Plugin::$indexes = array(); $this->source = "{DIV()}\n" . "{DIV()}\n" . "{DIV()}\n" . "{DIV()}\n" . "{DIV}{DIV}{DIV}{DIV}\n" . ";foo:foo definition\n" . ";foo2:foo2 definition\n" . "[[__bold__]\n" . "Test" . "''Test Italics''\n"; $this->expected = "<div class='Div' id='Div4'>" . "<br/>" . "<div class='Div' id='Div3'>" . "<br/>" . "<div class='Div' id='Div2'>" . "<br/>" . "<div class='Div' id='Div1'>" . "<br/>" . "</div>" . "</div>" . "</div>" . "</div>" . "<dl>" . "<dt>foo</dt>" . "<dd>foo definition</dd>" . "<dt>foo2</dt>" . "<dd>foo2 definition</dd>" . "</dl>" . "<a href='[__bold__'>[__bold__</a><br/>" . "Test<i>Test Italics</i><br/>"; }
public function __construct(&$parser) { Expression\Plugin::$indexes = array(); $this->expected = (new WikiLingoTestExpression\NoLineSkipping($parser))->source; $this->source = $parser->parse($this->expected); }
public function __construct(&$parser) { Expression\Plugin::$indexes = array(); $this->source = "# foo{DIV()}\n" . " Continuation1\n" . "Continuation2{DIV}\n" . "# bar"; $this->expected = '<ol>' . "<li><span class='whitespace'> </span>foo" . "<div class='Div' id='Div1'>" . "<br/>" . "<span class='whitespace'> </span>Continuation1" . "<br/>" . 'Continuation2' . '</div>' . '</li>' . "<li><span class='whitespace'> </span>bar</li>" . '</ol>'; }