@@ -1535,14 +1535,42 @@ public static function provideTruncate(): array
15351535 ['foobar... ' , 'foobar foo ' , 7 , '... ' , false ],
15361536 ['foobar foo... ' , 'foobar foo a ' , 10 , '... ' , false ],
15371537 ['foobar foo aar ' , 'foobar foo aar ' , 12 , '... ' , false ],
1538+ ['foobar ' , 'foobar foo ' , 6 , '' , TruncateMode::Char],
1539+ ['foobar ' , 'foobar foo ' , 6 , '' , TruncateMode::WordAfter],
1540+ ['foobar ' , 'foobar foo ' , 6 , '' , TruncateMode::WordBefore],
1541+ ['foo... ' , 'foobar foo ' , 6 , '... ' , TruncateMode::Char],
15381542 ['foobar... ' , 'foobar foo ' , 6 , '... ' , TruncateMode::WordAfter],
1543+ ['foobar... ' , 'foobar foo ' , 6 , '... ' , TruncateMode::WordBefore],
1544+ ['foobar ' , 'foobar foo ' , 7 , '' , TruncateMode::Char],
1545+ ['foobar ' , 'foobar foo ' , 7 , '' , TruncateMode::WordAfter],
1546+ ['foobar ' , 'foobar foo ' , 7 , '' , TruncateMode::WordBefore],
1547+ ['foob... ' , 'foobar foo ' , 7 , '... ' , TruncateMode::Char],
15391548 ['foobar... ' , 'foobar foo ' , 7 , '... ' , TruncateMode::WordAfter],
1549+ ['foobar... ' , 'foobar foo ' , 7 , '... ' , TruncateMode::WordBefore],
1550+ ['foobar foo ' , 'foobar foo a ' , 10 , '' , TruncateMode::Char],
1551+ ['foobar foo ' , 'foobar foo a ' , 10 , '' , TruncateMode::WordAfter],
1552+ ['foobar foo ' , 'foobar foo a ' , 10 , '' , TruncateMode::WordBefore],
1553+ ['foobar... ' , 'foobar foo a ' , 10 , '... ' , TruncateMode::Char],
15401554 ['foobar foo... ' , 'foobar foo a ' , 10 , '... ' , TruncateMode::WordAfter],
1555+ ['foobar... ' , 'foobar foo a ' , 10 , '... ' , TruncateMode::WordBefore],
1556+ ['foobar foo a ' , 'foobar foo aar ' , 12 , '' , TruncateMode::Char],
1557+ ['foobar foo aar ' , 'foobar foo aar ' , 12 , '' , TruncateMode::WordAfter],
1558+ ['foobar foo ' , 'foobar foo aar ' , 12 , '' , TruncateMode::WordBefore],
1559+ ['foobar fo... ' , 'foobar foo aar ' , 12 , '... ' , TruncateMode::Char],
15411560 ['foobar foo aar ' , 'foobar foo aar ' , 12 , '... ' , TruncateMode::WordAfter],
1561+ ['foobar... ' , 'foobar foo aar ' , 12 , '... ' , TruncateMode::WordBefore],
1562+ ['foobar foo ' , 'foobar foo aar ' , 10 , '' , TruncateMode::Char],
15421563 ['foobar foo ' , 'foobar foo aar ' , 10 , '' , TruncateMode::WordBefore],
1564+ ['foobar foo ' , 'foobar foo aar ' , 10 , '' , TruncateMode::WordAfter],
1565+ ['foobar... ' , 'foobar foo aar ' , 10 , '... ' , TruncateMode::Char],
15431566 ['foobar... ' , 'foobar foo aar ' , 10 , '... ' , TruncateMode::WordBefore],
1567+ ['foobar foo... ' , 'foobar foo aar ' , 10 , '... ' , TruncateMode::WordAfter],
1568+ ['Lorem ipsum do ' , 'Lorem ipsum dolor sit amet ' , 14 , '' , TruncateMode::Char],
15441569 ['Lorem ipsum ' , 'Lorem ipsum dolor sit amet ' , 14 , '' , TruncateMode::WordBefore],
1570+ ['Lorem ipsum dolor ' , 'Lorem ipsum dolor sit amet ' , 14 , '' , TruncateMode::WordAfter],
1571+ ['Lorem i... ' , 'Lorem ipsum dolor sit amet ' , 10 , '... ' , TruncateMode::Char],
15451572 ['Lorem... ' , 'Lorem ipsum dolor sit amet ' , 10 , '... ' , TruncateMode::WordBefore],
1573+ ['Lorem ipsum... ' , 'Lorem ipsum dolor sit amet ' , 10 , '... ' , TruncateMode::WordAfter],
15461574 ];
15471575 }
15481576
0 commit comments