From 332b725c7f832f50204b71628200d6f490419f0a Mon Sep 17 00:00:00 2001 From: Volodymyr Shelmuk Date: Fri, 15 Mar 2024 23:03:53 +0200 Subject: [PATCH] tests: add non-standard URL case --- .../Unit/OutputFilter/AttributesOutputFilterTest.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/tests/phpunit/Unit/OutputFilter/AttributesOutputFilterTest.php b/tests/phpunit/Unit/OutputFilter/AttributesOutputFilterTest.php index 1ba1ad0..6525ad2 100644 --- a/tests/phpunit/Unit/OutputFilter/AttributesOutputFilterTest.php +++ b/tests/phpunit/Unit/OutputFilter/AttributesOutputFilterTest.php @@ -193,6 +193,8 @@ public function provideRenderWithInlineScripts(): \Generator console.log("script with multiple lines") })(); JS; + $multiByteLine = ''; + $nonStandardUrl = ''; yield 'before single line' => [ $singleLineJs, @@ -220,8 +222,13 @@ public function provideRenderWithInlineScripts(): \Generator ]; yield 'before and after multibyte line' => [ - '', - '', + $multiByteLine, + $multiByteLine, + ]; + + yield 'before and after URL with non-alphanumeric characters' => [ + $nonStandardUrl, + $nonStandardUrl, ]; } }