[ticket/15403] Add another test

PHPBB-15403
This commit is contained in:
Ruben Calvo 2024-07-14 12:47:06 +02:00
parent 6b5a632c12
commit 2818ca1309
No known key found for this signature in database

View file

@ -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',
]
];
}