From d8b167851c0fe72091de55780101aafc4251e5ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Wed, 3 Sep 2025 12:14:33 +0200 Subject: [PATCH] add a combining character in dol_string_unaccent test (#35153) * add a combining character in dol_string_unaccent test * fix --- test/phpunit/FunctionsLibTest.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/test/phpunit/FunctionsLibTest.php b/test/phpunit/FunctionsLibTest.php index a80f7f66e10..5239a0059d6 100644 --- a/test/phpunit/FunctionsLibTest.php +++ b/test/phpunit/FunctionsLibTest.php @@ -1,8 +1,9 @@ - * Copyright (C) 2015 Juanjo Menent - * Copyright (C) 2023 Alexandre Janniaux - * Copyright (C) 2025 MDW +/* Copyright (C) 2010-2014 Laurent Destailleur + * Copyright (C) 2015 Juanjo Menent + * Copyright (C) 2023 Alexandre Janniaux + * Copyright (C) 2025 MDW + * Copyright (C) 2025 Frédéric France * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -944,9 +945,9 @@ class FunctionsLibTest extends CommonClassTest { // Text not already HTML - $input = "A string\nwith a à ä é è ë ï ü ö ÿ, &, < and >."; + $input = "A string\nwith a à ä é è ë ï ü ö ÿ É É, &, < and >."; // the second É is different than the first one $after = dol_string_unaccent($input); - $this->assertEquals("A string\nwith a a a e e e i u o y, &, < and >.", $after); + $this->assertEquals("A string\nwith a a a e e e i u o y E E, &, < and >.", $after); }