1<?php 2 3require_once DOKU_INC . 'inc/parser/parser.php'; 4require_once DOKU_INC . 'inc/parser/handler.php'; 5 6abstract class TestOfDoku_Parser extends DokuWikiTest { 7 8 /** @var Doku_Parser */ 9 protected $P; 10 /** @var Doku_Handler */ 11 protected $H; 12 13 function setUp() { 14 parent::setUp(); 15 $this->H = new Doku_Handler(); 16 $this->P = new Doku_Parser($this->H); 17 } 18 19 function tearDown() { 20 unset($this->P); 21 unset($this->H); 22 } 23} 24 25function stripByteIndex($call) { 26 unset($call[2]); 27 if ($call[0] == "nest") { 28 $call[1][0] = array_map('stripByteIndex',$call[1][0]); 29 } 30 return $call; 31} 32