mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-04 07:47:34 +02:00
[ticket/15403] Add another test
PHPBB-15403
This commit is contained in:
@@ -107,6 +107,12 @@ class phpbb_functions_content_get_context_test extends TestCase
|
|||||||
'length' => 10,
|
'length' => 10,
|
||||||
'expected' => '... word1 ... word2 ...',
|
'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',
|
||||||
|
]
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user