From 2818ca130993f5d61d1c9374db924445fb4198e3 Mon Sep 17 00:00:00 2001 From: Ruben Calvo Date: Sun, 14 Jul 2024 12:47:06 +0200 Subject: [PATCH] [ticket/15403] Add another test PHPBB-15403 --- tests/functions_content/get_context_test.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/functions_content/get_context_test.php b/tests/functions_content/get_context_test.php index cce72c6652..59f6cdf846 100644 --- a/tests/functions_content/get_context_test.php +++ b/tests/functions_content/get_context_test.php @@ -107,6 +107,12 @@ class phpbb_functions_content_get_context_test extends TestCase 'length' => 10, 'expected' => '... word1 ... word2 ...', ], + 'ellipsis_middle2' => [ + 'text' => 'word1 foo foo foo foo foo foo foo foo foo word2', + 'words' => ['word1', 'word2'], + 'length' => 10, + 'expected' => 'word1 ... word2', + ] ]; }