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->P = new Doku_Parser(); 16 $this->H = new Doku_Handler(); 17 $this->P->Handler = $this->H; 18 } 19 20 function tearDown() { 21 unset($this->P); 22 unset($this->H); 23 } 24} 25 26function stripByteIndex($call) { 27 unset($call[2]); 28 if ($call[0] == "nest") { 29 $call[1][0] = array_map('stripByteIndex',$call[1][0]); 30 } 31 return $call; 32} 33