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 PHPUnit_Framework_TestCase { 7 8 var $P; 9 var $H; 10 11 function setUp() { 12 parent::setUp(); 13 $this->P = new Doku_Parser(); 14 $this->H = new Doku_Handler(); 15 $this->P->Handler = & $this->H; 16 } 17 18 function tearDown() { 19 unset($this->P); 20 unset($this->H); 21 } 22} 23 24function stripByteIndex($call) { 25 unset($call[2]); 26 if ($call[0] == "nest") { 27 $call[1][0] = array_map('stripByteIndex',$call[1][0]); 28 } 29 return $call; 30} 31