diff --git a/maintenance/generate-standalone.php b/maintenance/generate-standalone.php index 8c6af4e4..d5a631a0 100755 --- a/maintenance/generate-standalone.php +++ b/maintenance/generate-standalone.php @@ -133,12 +133,15 @@ $FS->rmdirr('standalone'); // ensure a clean copy // data files $FS->mkdirr('standalone/HTMLPurifier/DefinitionCache/Serializer'); -make_dir_standalone('HTMLPurifier/EntityLookup'); +make_file_standalone('HTMLPurifier/EntityLookup/entities.ser'); make_file_standalone('HTMLPurifier/ConfigSchema/schema.ser'); // non-standard inclusion setup +make_dir_standalone('HTMLPurifier/ConfigSchema'); make_dir_standalone('HTMLPurifier/Language'); make_dir_standalone('HTMLPurifier/Filter'); +make_dir_standalone('HTMLPurifier/Printer'); +make_file_standalone('HTMLPurifier/Printer.php'); make_file_standalone('HTMLPurifier/Lexer/PH5P.php'); make_file_standalone('HTMLPurifier/Lexer/PEARSax3.php'); diff --git a/tests/HTMLPurifier/ChildDef/StrictBlockquoteTest.php b/tests/HTMLPurifier/ChildDef/StrictBlockquoteTest.php index 60cf50f3..4aa7acf0 100644 --- a/tests/HTMLPurifier/ChildDef/StrictBlockquoteTest.php +++ b/tests/HTMLPurifier/ChildDef/StrictBlockquoteTest.php @@ -71,9 +71,10 @@ extends HTMLPurifier_ChildDefHarness } function testError() { - // $this->expectError('Cannot use non-block element as block wrapper'); + $this->expectError('Cannot use non-block element as block wrapper'); $this->obj = new HTMLPurifier_ChildDef_StrictBlockquote('div | p'); $this->config->set('HTML', 'BlockWrapper', 'dav'); + $this->config->set('Cache', 'DefinitionImpl', null); $this->assertResult('Needs wrap', '
Needs wrap
'); } diff --git a/tests/HTMLPurifier/ConfigTest-create.ini b/tests/HTMLPurifier/ConfigTest-create.ini index 3441565b..5b41f3a8 100644 --- a/tests/HTMLPurifier/ConfigTest-create.ini +++ b/tests/HTMLPurifier/ConfigTest-create.ini @@ -1,2 +1,2 @@ [Cake] -Sprinkles = 42 \ No newline at end of file +Sprinkles = 42 diff --git a/tests/HTMLPurifier/ConfigTest-finalize.ini b/tests/HTMLPurifier/ConfigTest-finalize.ini index 81720463..8f1fd7e0 100644 --- a/tests/HTMLPurifier/ConfigTest-finalize.ini +++ b/tests/HTMLPurifier/ConfigTest-finalize.ini @@ -1,2 +1,2 @@ [Poem] -Meter = alexandrine \ No newline at end of file +Meter = alexandrine diff --git a/tests/HTMLPurifier/ConfigTest-loadIni.ini b/tests/HTMLPurifier/ConfigTest-loadIni.ini index 80dba594..082bb11e 100644 --- a/tests/HTMLPurifier/ConfigTest-loadIni.ini +++ b/tests/HTMLPurifier/ConfigTest-loadIni.ini @@ -1,4 +1,4 @@ [Shortcut] Copy = q Cut = t -Paste = p \ No newline at end of file +Paste = p diff --git a/tests/HTMLPurifier/Strategy/FixNestingTest.php b/tests/HTMLPurifier/Strategy/FixNestingTest.php index 908ee2b4..8035faf6 100644 --- a/tests/HTMLPurifier/Strategy/FixNestingTest.php +++ b/tests/HTMLPurifier/Strategy/FixNestingTest.php @@ -106,7 +106,8 @@ class HTMLPurifier_Strategy_FixNestingTest extends HTMLPurifier_StrategyHarness function testInvalidParentError() { // test fallback to div $this->config->set('HTML', 'Parent', 'obviously-impossible'); - // $this->expectError('Cannot use unrecognized element as parent'); + $this->config->set('Cache', 'DefinitionImpl', null); + $this->expectError('Cannot use unrecognized element as parent'); $this->assertResult('