Skip to content

Commit 0c4c656

Browse files
committed
test: add test cases
1 parent d40b3e7 commit 0c4c656

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

tests/system/Helpers/TextHelperTest.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,9 @@ public static function provideReduceMultiples(): iterable
9393
{
9494
yield from [
9595
// string, expected
96-
'double commas' => ['Fred, Bill,, Joe, Jimmy', 'Fred, Bill, Joe, Jimmy'],
97-
'double commas at last' => ['Ringo, John, Paul,,', 'Ringo, John, Paul,'],
96+
'double commas' => ['Fred, Bill,, Joe, Jimmy', 'Fred, Bill, Joe, Jimmy'],
97+
'double commas at last' => ['Ringo, John, Paul,,', 'Ringo, John, Paul,'],
98+
'commas at first and last' => [',Fred, Bill,, Joe, Jimmy,', ',Fred, Bill, Joe, Jimmy,'],
9899
];
99100
}
100101

@@ -108,8 +109,9 @@ public static function provideReduceMultiplesWithTrim(): iterable
108109
{
109110
yield from [
110111
// string, expected
111-
'double commas' => ['Fred, Bill,, Joe, Jimmy', 'Fred, Bill, Joe, Jimmy'],
112-
'double commas at last' => ['Ringo, John, Paul,,', 'Ringo, John, Paul'],
112+
'double commas' => ['Fred, Bill,, Joe, Jimmy', 'Fred, Bill, Joe, Jimmy'],
113+
'double commas at last' => ['Ringo, John, Paul,,', 'Ringo, John, Paul'],
114+
'commas at first and last' => [',Fred, Bill,, Joe, Jimmy,', 'Fred, Bill, Joe, Jimmy'],
113115
];
114116
}
115117

0 commit comments

Comments
 (0)