From 742c66f88fe7a65996ebfb3800910c99bdff1a8f Mon Sep 17 00:00:00 2001 From: chris Date: Wed, 9 Aug 2006 21:21:15 +0200 Subject: more unit test fixes - move parser.test.php darcs-hash:20060809192115-9b6ab-973fea51fbfdcf5f44a2ac66000f2ccb5fdd43b4.gz --- _test/cases/inc/parser/parser.inc.php | 49 +++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 _test/cases/inc/parser/parser.inc.php (limited to '_test/cases/inc/parser/parser.inc.php') diff --git a/_test/cases/inc/parser/parser.inc.php b/_test/cases/inc/parser/parser.inc.php new file mode 100644 index 000000000..5576aeece --- /dev/null +++ b/_test/cases/inc/parser/parser.inc.php @@ -0,0 +1,49 @@ +UnitTestCase('TestOfDoku_Parser'); + } + + function setup() { + $this->P = & new Doku_Parser(); + $this->H = & new Doku_Handler(); + $this->P->Handler = & $this->H; + } + + function tearDown() { + unset($this->P); + unset($this->H); + } +} + +function stripByteIndex($call) { + unset($call[2]); + if ($call[0] == "nest") { + $call[1][0] = array_map('stripByteIndex',$call[1][0]); + } + return $call; +} -- cgit v1.2.3