From 1d579ee432c625efc0bf7b3516fd80feb3065cd4 Mon Sep 17 00:00:00 2001 From: xemlock Date: Tue, 10 Dec 2019 19:35:05 +0100 Subject: [PATCH] Fix tests on Travis CI PHP 5.6 --- .../HTMLModule/HTML5/HypertextTest.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/tests/HTMLPurifier/HTMLModule/HTML5/HypertextTest.php b/tests/HTMLPurifier/HTMLModule/HTML5/HypertextTest.php index f1a1eb0..56892aa 100644 --- a/tests/HTMLPurifier/HTMLModule/HTML5/HypertextTest.php +++ b/tests/HTMLPurifier/HTMLModule/HTML5/HypertextTest.php @@ -65,4 +65,22 @@ public function testAnchor($input, $expected = null) $this->assertPurification($input, $expected); } + + /** + * @see https://github.com/xemlock/htmlpurifier-html5/issues/51 + */ + public function testIssue51_() + { + $this->config->autoFinalize = false; + + $this->assertPurification( + '
Foo
', + '
Foo
' + ); + + $this->config->set('Core.LexerImpl', 'DirectLex'); + $this->assertPurification( + '
Foo
' + ); + } }