public function TruncateHTMLTest::truncateCharsDataProvider in Smart Trim 8
Data provider for testTruncateChars().
File
- tests/
src/ Unit/ TruncateHTMLTest.php, line 32
Class
- TruncateHTMLTest
- Unit Test coverage.
Namespace
Drupal\Tests\smart_trim\UnitCode
public function truncateCharsDataProvider() {
return [
[
'A test string',
5,
'…',
'A tes…',
],
[
'“I like funky quotes”',
5,
'',
'“I li',
],
[
'“I <em>really, really</em> like funky quotes”',
14,
'',
'“I <em>really, rea</em>',
],
];
}