xref: /dokuwiki/_test/tests/inc/parser/parser.inc.php (revision 5a0eec47d375f076d810160503bdd303f8cf62a0)
1<?php
2/**
3* @version $Id: parser.inc.php,v 1.2 2005/03/25 21:00:22 harryf Exp $
4* @package Doku
5* @subpackage Tests
6*/
7
8/**
9* Includes
10*/
11require_once DOKU_INC . 'inc/init.php';
12require_once DOKU_INC . 'inc/confutils.php';
13require_once DOKU_INC . 'inc/parser/parser.php';
14require_once DOKU_INC . 'inc/parser/handler.php';
15require_once DOKU_INC . 'inc/events.php';
16require_once DOKU_INC . 'inc/mail.php';
17
18/**
19* @package Doku
20* @subpackage Tests
21*/
22abstract class TestOfDoku_Parser extends PHPUnit_Framework_TestCase {
23
24    var $P;
25    var $H;
26
27    function setup() {
28        $this->P = new Doku_Parser();
29        $this->H = new Doku_Handler();
30        $this->P->Handler = & $this->H;
31    }
32
33    function tearDown() {
34        unset($this->P);
35        unset($this->H);
36    }
37}
38
39function stripByteIndex($call) {
40    unset($call[2]);
41    if ($call[0] == "nest") {
42      $call[1][0] = array_map('stripByteIndex',$call[1][0]);
43    }
44    return $call;
45}
46