2007-01-19 23:26:15 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
if (!defined('HTMLPurifierTest')) exit;
|
|
|
|
|
2007-02-14 20:38:51 +00:00
|
|
|
// define callable test files (sorted alphabetically)
|
2007-05-28 02:29:48 +00:00
|
|
|
|
2008-02-16 05:40:59 +00:00
|
|
|
if (!$AC['only-phpt']) {
|
|
|
|
|
2007-05-28 02:29:48 +00:00
|
|
|
// HTML Purifier main library
|
|
|
|
|
|
|
|
$test_files[] = 'HTMLPurifier/AttrCollectionsTest.php';
|
2007-12-16 23:16:45 +00:00
|
|
|
$test_files[] = 'HTMLPurifier/AttrDef/CSS/AlphaValueTest.php';
|
2007-05-28 02:29:48 +00:00
|
|
|
$test_files[] = 'HTMLPurifier/AttrDef/CSS/BackgroundPositionTest.php';
|
|
|
|
$test_files[] = 'HTMLPurifier/AttrDef/CSS/BackgroundTest.php';
|
|
|
|
$test_files[] = 'HTMLPurifier/AttrDef/CSS/BorderTest.php';
|
|
|
|
$test_files[] = 'HTMLPurifier/AttrDef/CSS/ColorTest.php';
|
|
|
|
$test_files[] = 'HTMLPurifier/AttrDef/CSS/CompositeTest.php';
|
2007-12-16 23:16:45 +00:00
|
|
|
$test_files[] = 'HTMLPurifier/AttrDef/CSS/FilterTest.php';
|
2007-05-28 02:29:48 +00:00
|
|
|
$test_files[] = 'HTMLPurifier/AttrDef/CSS/FontFamilyTest.php';
|
|
|
|
$test_files[] = 'HTMLPurifier/AttrDef/CSS/FontTest.php';
|
2008-02-25 21:58:17 +00:00
|
|
|
$test_files[] = 'HTMLPurifier/AttrDef/CSS/ImportantDecoratorTest.php';
|
2007-05-28 02:29:48 +00:00
|
|
|
$test_files[] = 'HTMLPurifier/AttrDef/CSS/LengthTest.php';
|
|
|
|
$test_files[] = 'HTMLPurifier/AttrDef/CSS/ListStyleTest.php';
|
|
|
|
$test_files[] = 'HTMLPurifier/AttrDef/CSS/MultipleTest.php';
|
|
|
|
$test_files[] = 'HTMLPurifier/AttrDef/CSS/NumberTest.php';
|
|
|
|
$test_files[] = 'HTMLPurifier/AttrDef/CSS/PercentageTest.php';
|
|
|
|
$test_files[] = 'HTMLPurifier/AttrDef/CSS/TextDecorationTest.php';
|
|
|
|
$test_files[] = 'HTMLPurifier/AttrDef/CSS/URITest.php';
|
|
|
|
$test_files[] = 'HTMLPurifier/AttrDef/CSSTest.php';
|
|
|
|
$test_files[] = 'HTMLPurifier/AttrDef/EnumTest.php';
|
|
|
|
$test_files[] = 'HTMLPurifier/AttrDef/HTML/ColorTest.php';
|
|
|
|
$test_files[] = 'HTMLPurifier/AttrDef/HTML/IDTest.php';
|
|
|
|
$test_files[] = 'HTMLPurifier/AttrDef/HTML/LengthTest.php';
|
|
|
|
$test_files[] = 'HTMLPurifier/AttrDef/HTML/FrameTargetTest.php';
|
|
|
|
$test_files[] = 'HTMLPurifier/AttrDef/HTML/MultiLengthTest.php';
|
|
|
|
$test_files[] = 'HTMLPurifier/AttrDef/HTML/NmtokensTest.php';
|
|
|
|
$test_files[] = 'HTMLPurifier/AttrDef/HTML/PixelsTest.php';
|
|
|
|
$test_files[] = 'HTMLPurifier/AttrDef/HTML/LinkTypesTest.php';
|
|
|
|
$test_files[] = 'HTMLPurifier/AttrDef/IntegerTest.php';
|
|
|
|
$test_files[] = 'HTMLPurifier/AttrDef/LangTest.php';
|
|
|
|
$test_files[] = 'HTMLPurifier/AttrDef/TextTest.php';
|
|
|
|
$test_files[] = 'HTMLPurifier/AttrDef/URI/Email/SimpleCheckTest.php';
|
|
|
|
$test_files[] = 'HTMLPurifier/AttrDef/URI/HostTest.php';
|
|
|
|
$test_files[] = 'HTMLPurifier/AttrDef/URI/IPv4Test.php';
|
|
|
|
$test_files[] = 'HTMLPurifier/AttrDef/URI/IPv6Test.php';
|
|
|
|
$test_files[] = 'HTMLPurifier/AttrDef/URITest.php';
|
|
|
|
$test_files[] = 'HTMLPurifier/AttrDefTest.php';
|
|
|
|
$test_files[] = 'HTMLPurifier/AttrTransformTest.php';
|
|
|
|
$test_files[] = 'HTMLPurifier/AttrTransform/BdoDirTest.php';
|
|
|
|
$test_files[] = 'HTMLPurifier/AttrTransform/BgColorTest.php';
|
|
|
|
$test_files[] = 'HTMLPurifier/AttrTransform/BoolToCSSTest.php';
|
|
|
|
$test_files[] = 'HTMLPurifier/AttrTransform/BorderTest.php';
|
|
|
|
$test_files[] = 'HTMLPurifier/AttrTransform/EnumToCSSTest.php';
|
|
|
|
$test_files[] = 'HTMLPurifier/AttrTransform/ImgRequiredTest.php';
|
|
|
|
$test_files[] = 'HTMLPurifier/AttrTransform/ImgSpaceTest.php';
|
|
|
|
$test_files[] = 'HTMLPurifier/AttrTransform/LangTest.php';
|
|
|
|
$test_files[] = 'HTMLPurifier/AttrTransform/LengthTest.php';
|
|
|
|
$test_files[] = 'HTMLPurifier/AttrTransform/NameTest.php';
|
|
|
|
$test_files[] = 'HTMLPurifier/AttrTypesTest.php';
|
2007-06-27 02:03:15 +00:00
|
|
|
$test_files[] = 'HTMLPurifier/AttrValidator_ErrorsTest.php';
|
2007-05-28 02:29:48 +00:00
|
|
|
$test_files[] = 'HTMLPurifier/ChildDef/ChameleonTest.php';
|
|
|
|
$test_files[] = 'HTMLPurifier/ChildDef/CustomTest.php';
|
|
|
|
$test_files[] = 'HTMLPurifier/ChildDef/OptionalTest.php';
|
|
|
|
$test_files[] = 'HTMLPurifier/ChildDef/RequiredTest.php';
|
|
|
|
$test_files[] = 'HTMLPurifier/ChildDef/StrictBlockquoteTest.php';
|
|
|
|
$test_files[] = 'HTMLPurifier/ChildDef/TableTest.php';
|
|
|
|
$test_files[] = 'HTMLPurifier/ConfigSchemaTest.php';
|
2008-02-24 06:19:28 +00:00
|
|
|
$test_files[] = 'HTMLPurifier/ConfigSchema/StringHashAdapterTest.php';
|
|
|
|
$test_files[] = 'HTMLPurifier/ConfigSchema/StringHashReverseAdapterTest.php';
|
|
|
|
$test_files[] = 'HTMLPurifier/ConfigSchema/StringHashParserTest.php';
|
|
|
|
$test_files[] = 'HTMLPurifier/ConfigSchema/StringHashTest.php';
|
2007-05-28 02:29:48 +00:00
|
|
|
$test_files[] = 'HTMLPurifier/ConfigTest.php';
|
|
|
|
$test_files[] = 'HTMLPurifier/ContextTest.php';
|
2007-05-29 20:21:33 +00:00
|
|
|
$test_files[] = 'HTMLPurifier/DefinitionCacheFactoryTest.php';
|
2007-05-28 02:29:48 +00:00
|
|
|
$test_files[] = 'HTMLPurifier/DefinitionCacheTest.php';
|
2007-05-29 20:49:33 +00:00
|
|
|
$test_files[] = 'HTMLPurifier/DefinitionCache/Decorator/CleanupTest.php';
|
2007-05-29 20:21:33 +00:00
|
|
|
$test_files[] = 'HTMLPurifier/DefinitionCache/Decorator/MemoryTest.php';
|
|
|
|
$test_files[] = 'HTMLPurifier/DefinitionCache/DecoratorTest.php';
|
2007-05-28 02:29:48 +00:00
|
|
|
$test_files[] = 'HTMLPurifier/DefinitionCache/SerializerTest.php';
|
|
|
|
$test_files[] = 'HTMLPurifier/DefinitionTest.php';
|
|
|
|
$test_files[] = 'HTMLPurifier/DoctypeRegistryTest.php';
|
|
|
|
$test_files[] = 'HTMLPurifier/ElementDefTest.php';
|
2007-06-18 03:05:18 +00:00
|
|
|
$test_files[] = 'HTMLPurifier/ErrorCollectorTest.php';
|
2007-05-28 02:29:48 +00:00
|
|
|
$test_files[] = 'HTMLPurifier/EncoderTest.php';
|
|
|
|
$test_files[] = 'HTMLPurifier/EntityLookupTest.php';
|
|
|
|
$test_files[] = 'HTMLPurifier/EntityParserTest.php';
|
|
|
|
$test_files[] = 'HTMLPurifier/GeneratorTest.php';
|
2007-05-29 21:26:43 +00:00
|
|
|
$test_files[] = 'HTMLPurifier/HTMLDefinitionTest.php';
|
2007-05-28 02:29:48 +00:00
|
|
|
$test_files[] = 'HTMLPurifier/HTMLModuleManagerTest.php';
|
|
|
|
$test_files[] = 'HTMLPurifier/HTMLModuleTest.php';
|
2007-08-08 05:16:15 +00:00
|
|
|
$test_files[] = 'HTMLPurifier/HTMLModule/ObjectTest.php';
|
2007-08-02 22:44:42 +00:00
|
|
|
$test_files[] = 'HTMLPurifier/HTMLModule/RubyTest.php';
|
2007-05-28 02:29:48 +00:00
|
|
|
$test_files[] = 'HTMLPurifier/HTMLModule/ScriptingTest.php';
|
|
|
|
$test_files[] = 'HTMLPurifier/HTMLModule/TidyTest.php';
|
|
|
|
$test_files[] = 'HTMLPurifier/IDAccumulatorTest.php';
|
2007-06-24 21:35:34 +00:00
|
|
|
$test_files[] = 'HTMLPurifier/Injector/AutoParagraphTest.php';
|
|
|
|
$test_files[] = 'HTMLPurifier/Injector/LinkifyTest.php';
|
2007-06-24 22:22:00 +00:00
|
|
|
$test_files[] = 'HTMLPurifier/Injector/PurifierLinkifyTest.php';
|
2007-05-28 02:29:48 +00:00
|
|
|
$test_files[] = 'HTMLPurifier/LanguageFactoryTest.php';
|
|
|
|
$test_files[] = 'HTMLPurifier/LanguageTest.php';
|
|
|
|
$test_files[] = 'HTMLPurifier/Lexer/DirectLexTest.php';
|
2007-06-25 01:56:00 +00:00
|
|
|
$test_files[] = 'HTMLPurifier/Lexer/DirectLex_ErrorsTest.php';
|
2007-05-28 02:29:48 +00:00
|
|
|
$test_files[] = 'HTMLPurifier/LexerTest.php';
|
|
|
|
$test_files[] = 'HTMLPurifier/PercentEncoderTest.php';
|
|
|
|
$test_files[] = 'HTMLPurifier/Strategy/CompositeTest.php';
|
|
|
|
$test_files[] = 'HTMLPurifier/Strategy/CoreTest.php';
|
|
|
|
$test_files[] = 'HTMLPurifier/Strategy/FixNestingTest.php';
|
2007-06-26 23:43:28 +00:00
|
|
|
$test_files[] = 'HTMLPurifier/Strategy/FixNesting_ErrorsTest.php';
|
2007-05-28 02:29:48 +00:00
|
|
|
$test_files[] = 'HTMLPurifier/Strategy/MakeWellFormedTest.php';
|
2007-06-26 15:07:07 +00:00
|
|
|
$test_files[] = 'HTMLPurifier/Strategy/MakeWellFormed_ErrorsTest.php';
|
2007-08-06 06:22:23 +00:00
|
|
|
$test_files[] = 'HTMLPurifier/Strategy/MakeWellFormed_InjectorTest.php';
|
2007-05-28 02:29:48 +00:00
|
|
|
$test_files[] = 'HTMLPurifier/Strategy/RemoveForeignElementsTest.php';
|
2007-06-26 02:49:21 +00:00
|
|
|
$test_files[] = 'HTMLPurifier/Strategy/RemoveForeignElements_ErrorsTest.php';
|
2007-08-06 06:22:23 +00:00
|
|
|
$test_files[] = 'HTMLPurifier/Strategy/RemoveForeignElements_TidyTest.php';
|
2007-05-28 02:29:48 +00:00
|
|
|
$test_files[] = 'HTMLPurifier/Strategy/ValidateAttributesTest.php';
|
2007-08-06 06:22:23 +00:00
|
|
|
$test_files[] = 'HTMLPurifier/Strategy/ValidateAttributes_IDTest.php';
|
|
|
|
$test_files[] = 'HTMLPurifier/Strategy/ValidateAttributes_TidyTest.php';
|
2007-05-28 02:29:48 +00:00
|
|
|
$test_files[] = 'HTMLPurifier/TagTransformTest.php';
|
2008-01-06 19:31:21 +00:00
|
|
|
$test_files[] = 'HTMLPurifier/TokenFactoryTest.php';
|
2007-05-28 02:29:48 +00:00
|
|
|
$test_files[] = 'HTMLPurifier/TokenTest.php';
|
2007-08-02 01:12:27 +00:00
|
|
|
$test_files[] = 'HTMLPurifier/URIDefinitionTest.php';
|
|
|
|
$test_files[] = 'HTMLPurifier/URIFilter/DisableExternalTest.php';
|
|
|
|
$test_files[] = 'HTMLPurifier/URIFilter/DisableExternalResourcesTest.php';
|
2007-08-02 01:41:37 +00:00
|
|
|
$test_files[] = 'HTMLPurifier/URIFilter/HostBlacklistTest.php';
|
2007-08-02 21:47:24 +00:00
|
|
|
$test_files[] = 'HTMLPurifier/URIFilter/MakeAbsoluteTest.php';
|
2007-08-01 14:55:09 +00:00
|
|
|
$test_files[] = 'HTMLPurifier/URIParserTest.php';
|
2007-05-28 02:29:48 +00:00
|
|
|
$test_files[] = 'HTMLPurifier/URISchemeRegistryTest.php';
|
|
|
|
$test_files[] = 'HTMLPurifier/URISchemeTest.php';
|
2007-08-01 18:34:46 +00:00
|
|
|
$test_files[] = 'HTMLPurifier/URITest.php';
|
2007-05-28 02:29:48 +00:00
|
|
|
$test_files[] = 'HTMLPurifierTest.php';
|
2007-01-19 23:26:15 +00:00
|
|
|
|
2008-01-21 19:02:40 +00:00
|
|
|
if ($csstidy_location) {
|
|
|
|
$test_files[] = 'HTMLPurifier/Filter/ExtractStyleBlocksTest.php';
|
|
|
|
}
|
|
|
|
|
2007-05-28 02:29:48 +00:00
|
|
|
// ConfigDoc auxiliary library
|
|
|
|
|
2008-02-25 21:21:12 +00:00
|
|
|
if (version_compare(PHP_VERSION, '5.2', '>=')) {
|
|
|
|
$test_files[] = 'ConfigDoc/DOM/DocumentTest.php';
|
|
|
|
}
|
2007-05-28 02:29:48 +00:00
|
|
|
|
2008-01-27 05:31:06 +00:00
|
|
|
// FSTools auxiliary library
|
|
|
|
|
|
|
|
$test_files[] = 'FSTools/FileTest.php';
|
|
|
|
|
2008-02-16 05:40:59 +00:00
|
|
|
} // end if ($AC['only-phpt'])
|
|
|
|
|
2008-02-16 00:40:30 +00:00
|
|
|
// PHPT tests
|
|
|
|
|
2008-02-16 05:40:59 +00:00
|
|
|
if (!$AC['disable-phpt']) {
|
|
|
|
$phpt_dirs = array();
|
|
|
|
$phpt_dirs[] = 'HTMLPurifier/PHPT';
|
|
|
|
}
|