mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/15403] Add another test
PHPBB-15403
This commit is contained in:
parent
6b5a632c12
commit
2818ca1309
1 changed files with 6 additions and 0 deletions
|
@ -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',
|
||||
]
|
||||
];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue