summaryrefslogtreecommitdiff
path: root/inc/parser/tests/parser_unformatted.test.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2005-10-22 01:23:28 +0200
committerAndreas Gohr <andi@splitbrain.org>2005-10-22 01:23:28 +0200
commitc13104acf0edfa5c08738d32e26ae51ea7e4407c (patch)
tree23141f0c865563590d33003fcbb5173d2ed0b53c /inc/parser/tests/parser_unformatted.test.php
parentaa11db09d61b813593c2ed7d91b329f98ae7010a (diff)
downloadrpg-c13104acf0edfa5c08738d32e26ae51ea7e4407c.tar.gz
rpg-c13104acf0edfa5c08738d32e26ae51ea7e4407c.tar.bz2
moved parser tests to new test environment
The parser tests are outdated and need to be adjusted. Currently 71 tests fail. Others are probably missing. darcs-hash:20051021232328-7ad00-c1d62951dad810dc73f8e78ae82f37465c21c261.gz
Diffstat (limited to 'inc/parser/tests/parser_unformatted.test.php')
-rw-r--r--inc/parser/tests/parser_unformatted.test.php49
1 files changed, 0 insertions, 49 deletions
diff --git a/inc/parser/tests/parser_unformatted.test.php b/inc/parser/tests/parser_unformatted.test.php
deleted file mode 100644
index e9c1fce70..000000000
--- a/inc/parser/tests/parser_unformatted.test.php
+++ /dev/null
@@ -1,49 +0,0 @@
-<?php
-require_once 'parser.test.php';
-
-class TestOfDoku_Parser_Unformatted extends TestOfDoku_Parser {
-
- function TestOfDoku_Parser_Unformatted() {
- $this->UnitTestCase('TestOfDoku_Parser_Unformatted');
- }
-
- function testNowiki() {
- $this->P->addMode('unformatted',new Doku_Parser_Mode_Unformatted());
- $this->P->parse("Foo <nowiki>testing</nowiki> Bar");
- $calls = array (
- array('document_start',array()),
- array('p_open',array()),
- array('cdata',array("\n".'Foo ')),
- array('unformatted',array('testing')),
- array('cdata',array(' Bar'."\n")),
- array('p_close',array()),
- array('document_end',array()),
- );
- $this->assertEqual(array_map('stripByteIndex',$this->H->calls),$calls);
-
- }
-
- function testDoublePercent() {
- $this->P->addMode('unformatted',new Doku_Parser_Mode_Unformatted());
- $this->P->parse("Foo %%testing%% Bar");
- $calls = array (
- array('document_start',array()),
- array('p_open',array()),
- array('cdata',array("\n".'Foo ')),
- array('unformatted',array('testing')),
- array('cdata',array(' Bar'."\n")),
- array('p_close',array()),
- array('document_end',array()),
- );
- $this->assertEqual(array_map('stripByteIndex',$this->H->calls),$calls);
- }
-}
-
-/**
-* Conditional test runner
-*/
-if (!defined('TEST_RUNNING')) {
- define('TEST_RUNNING', true);
- $test = &new TestOfDoku_Parser_Unformatted();
- $test->run(new HtmlReporter());
-}