diff --git a/tests/HTMLPurifier/HTMLModule/BdoTest.php b/tests/HTMLPurifier/HTMLModule/BdoTest.php
deleted file mode 100644
index 51a74b3e..00000000
--- a/tests/HTMLPurifier/HTMLModule/BdoTest.php
+++ /dev/null
@@ -1,42 +0,0 @@
-setupScaffold('Bdo');
-
- // max
- $this->assertResult(
- '
-
- #PCDATA Inline
-
- '
- );
-
- // min
- $this->assertResult(
- '', ''
- );
-
- // children
- $this->assertResult(
- 'Text',
- 'Text'
- );
-
- // global attr
- $this->assertResult(
- '
',
- '
'
- );
-
- }
-
-}
-
-?>
\ No newline at end of file
diff --git a/tests/HTMLPurifier/HTMLModule/EditTest.php b/tests/HTMLPurifier/HTMLModule/EditTest.php
deleted file mode 100644
index e6fe8c44..00000000
--- a/tests/HTMLPurifier/HTMLModule/EditTest.php
+++ /dev/null
@@ -1,60 +0,0 @@
-setupScaffold('Edit');
-
- // max
- $this->assertResult(
- '
-
- #PCDATA
-
-
- #PCDATA
-
-
-
Text' - );*/ - - } - -} - -?> \ No newline at end of file diff --git a/tests/HTMLPurifier/HTMLModuleHarness.php b/tests/HTMLPurifier/HTMLModuleHarness.php index 70dc8ed5..1f60f435 100644 --- a/tests/HTMLPurifier/HTMLModuleHarness.php +++ b/tests/HTMLPurifier/HTMLModuleHarness.php @@ -9,27 +9,6 @@ class HTMLPurifier_HTMLModuleHarness extends HTMLPurifier_StrategyHarness parent::setup(); $this->obj = new HTMLPurifier_Strategy_Core(); } - - function setupScaffold($module, $config = array()) { - - $this->config = HTMLPurifier_Config::create($config); - $this->config->set('HTML', 'AllowedModules', $module); - $def =& $this->config->getHTMLDefinition(true); - $def->manager->addModule(new HTMLPurifier_HTMLModuleHarness_Scaffold()); - - } -} - -/** - * Special module that defines scaffolding for easy unit testing - */ -class HTMLPurifier_HTMLModuleHarness_Scaffold extends HTMLPurifier_HTMLModule -{ - var $name = 'Scaffold'; - var $attr_collections = array( - 'Common' => array('ac:common' => 'Text'), - 'Core' => array('ac:core' => 'Text') - ); } ?> \ No newline at end of file diff --git a/tests/test_files.php b/tests/test_files.php index 1112f231..21c7b943 100644 --- a/tests/test_files.php +++ b/tests/test_files.php @@ -65,11 +65,6 @@ $test_files[] = 'EntityParserTest.php'; $test_files[] = 'GeneratorTest.php'; $test_files[] = 'HTMLModuleManagerTest.php'; $test_files[] = 'HTMLModuleTest.php'; -$test_files[] = 'HTMLModule/BdoTest.php'; -$test_files[] = 'HTMLModule/EditTest.php'; -$test_files[] = 'HTMLModule/HypertextTest.php'; -$test_files[] = 'HTMLModule/ImageTest.php'; -$test_files[] = 'HTMLModule/LegacyTest.php'; $test_files[] = 'HTMLModule/ScriptingTest.php'; $test_files[] = 'HTMLModule/TidyTest.php'; $test_files[] = 'IDAccumulatorTest.php';