From: Renan Rodrigo <renanrodrigo@canonical.com>
Date: Thu, 31 Jul 2025 09:53:55 -0300
Subject: Update encoding test to adapt to libxml2.14

The new libxml2.14 uses the HTML5 standards when converting inputs. Before
HTML5, any text should be inside a <p> tag to be valid, so the parser was
inserting that tag. Now the tag is not created anymore, which breaks the
encoding tests. As the test is about encoding and not parsing, we manually add
the tag so it works with both parsers.

Signed-off-by: Renan Rodrigo <renanrodrigo@canonical.com>

Origin: vendor, https://github.com/renanrodrigo/pinky/commit/f19cc8347d128ef0d57e8bc5cce6cad6cfcc4193
Bug: hhttps://github.com/lorenzo/pinky/issues/30
Bug-Debian: https://bugs.debian.org/1107545
---
 tests/EncodingTest.php | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/EncodingTest.php b/tests/EncodingTest.php
index 68128e8..aef3554 100644
--- a/tests/EncodingTest.php
+++ b/tests/EncodingTest.php
@@ -20,15 +20,15 @@ class EncodingTest extends TestCase
     {
         yield [
             '<html><body><p>ASCII only</p></body></html>',
-            'ASCII only',
+            '<p>ASCII only</p>',
         ];
         yield [
             '<html><body><p>Twoje zam&oacute;wienie oczekuje na wp&#322;at&#281; zadatku &#127475;&#127473;</p></body></html>',
-            'Twoje zamówienie oczekuje na wpłatę zadatku 🇳🇱',
+            '<p>Twoje zamówienie oczekuje na wpłatę zadatku 🇳🇱</p>',
         ];
         yield [
             '<html><body><p>&#1055;&#1088;&#1080;&#1074;&#1077;&#1090; &#1084;&#1080;&#1088;!</p></body></html>',
-            'Привет мир!',
+            '<p>Привет мир!</p>',
         ];
     }
 }
