Skip to content

Commit 9862602

Browse files
committed
Fix safeTruncate tests
1 parent 8416008 commit 9862602

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

tests/StringyTest.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1409,18 +1409,18 @@ public function safeTruncateProvider()
14091409
array('Test foo...', 'Test foo bar', 11, '...'),
14101410
array('Test...', 'Test foo bar', 8, '...'),
14111411
array('Test...', 'Test foo bar', 7, '...'),
1412-
array('...', 'Test foo bar', 4, '...'),
1412+
array('T...', 'Test foo bar', 4, '...'),
14131413
array('Test....', 'Test foo bar', 11, '....'),
1414-
array('Test fòô bàř', 'Test fòô bàř', 12, '', 'UTF-8'),
1415-
array('Test fòô', 'Test fòô bàř', 11, '', 'UTF-8'),
1416-
array('Test fòô', 'Test fòô bàř', 8, '', 'UTF-8'),
1417-
array('Test', 'Test fòô bàř', 7, '', 'UTF-8'),
1418-
array('Test', 'Test fòô bàř', 4, '', 'UTF-8'),
1419-
array('Test fòô bàř', 'Test fòô bàř', 12, 'ϰϰ', 'UTF-8'),
1420-
array('Test fòôϰϰ', 'Test fòô bàř', 11, 'ϰϰ', 'UTF-8'),
1421-
array('Testϰϰ', 'Test fòô bàř', 8, 'ϰϰ', 'UTF-8'),
1422-
array('Testϰϰ', 'Test fòô bàř', 7, 'ϰϰ', 'UTF-8'),
1423-
array('ϰϰ', 'Test fòô bàř', 4, 'ϰϰ', 'UTF-8'),
1414+
array('Tëst fòô bàř', 'Tëst fòô bàř', 12, '', 'UTF-8'),
1415+
array('Tëst fòô', 'Tëst fòô bàř', 11, '', 'UTF-8'),
1416+
array('Tëst fòô', 'Tëst fòô bàř', 8, '', 'UTF-8'),
1417+
array('Tëst', 'Tëst fòô bàř', 7, '', 'UTF-8'),
1418+
array('Tëst', 'Tëst fòô bàř', 4, '', 'UTF-8'),
1419+
array('Tëst fòô bàř', 'Tëst fòô bàř', 12, 'ϰϰ', 'UTF-8'),
1420+
array('Tëst fòôϰϰ', 'Tëst fòô bàř', 11, 'ϰϰ', 'UTF-8'),
1421+
array('Tëstϰϰ', 'Tëst fòô bàř', 8, 'ϰϰ', 'UTF-8'),
1422+
array('Tëstϰϰ', 'Tëst fòô bàř', 7, 'ϰϰ', 'UTF-8'),
1423+
array('Tëϰϰ', 'Tëst fòô bàř', 4, 'ϰϰ', 'UTF-8'),
14241424
array('What are your plans...', 'What are your plans today?', 22, '...')
14251425
);
14261426
}

0 commit comments

Comments
 (0)