@@ -307,10 +307,10 @@ public function provideUnchangedStringForRemoveLastSemicolon(): array
307307 {
308308 return [
309309 'empty string ' => ['' ],
310- 'string without semicolon ' => ['Tea or coffee? ' ],
311- 'string with trailing semicolon ' => ['Tea or coffee ; ' ],
312- 'string with semicolon in the middle ' => ['Tea; coffee ' ],
313- 'string with semicolons in the middle and trailing ' => ['Tea; coffee ; ' ],
310+ 'string without semicolon ' => ['Earl Grey: hot ' ],
311+ 'string with trailing semicolon ' => ['Earl Grey: hot ; ' ],
312+ 'string with semicolon in the middle ' => ['Earl Grey: hot; Coffee: Americano ' ],
313+ 'string with semicolons in the middle and trailing ' => ['Earl Grey: hot; Coffee: Americano ; ' ],
314314 ];
315315 }
316316
@@ -334,19 +334,31 @@ public function provideChangedStringForRemoveLastSemicolon(): array
334334 {
335335 return [
336336 'empty string ' => ['' , '' ],
337- 'non-empty string without semicolon ' => ['Tea or coffee? ' , 'Tea or coffee? ' ],
337+ 'non-empty string without semicolon ' => ['Earl Grey: hot ' , 'Earl Grey: hot ' ],
338338 'just 1 semicolon ' => ['; ' , '' ],
339339 'just 2 semicolons ' => [';; ' , '; ' ],
340- 'string with trailing semicolon ' => ['tea or coffee; ' , 'tea or coffee ' ],
341- 'string with semicolon in the middle ' => ['tea; coffee ' , 'tea coffee ' ],
342- 'string with semicolon in the middle and trailing ' => ['tea; coffee; ' , 'tea; coffee ' ],
340+ 'string with trailing semicolon ' => ['Earl Grey: hot; ' , 'Earl Grey: hot ' ],
341+ 'string with semicolon in the middle ' => [
342+ 'Earl Grey: hot; Coffee: Americano ' ,
343+ 'Earl Grey: hot Coffee: Americano ' ,
344+ ],
345+ 'string with semicolon in the middle and trailing ' => [
346+ 'Earl Grey: hot; Coffee: Americano; ' ,
347+ 'Earl Grey: hot; Coffee: Americano ' ,
348+ ],
343349 'string with 2 semicolons in the middle ' => ['tea; coffee; Club-Mate ' , 'tea; coffee Club-Mate ' ],
344350 'string with 2 semicolons in the middle surrounded by spaces ' => [
345- 'tea ; coffee ; Club-Mate ' ,
346- 'tea ; coffee Club-Mate ' ,
351+ 'Earl Grey: hot ; Coffee: Americano ; Club-Mate: cold ' ,
352+ 'Earl Grey: hot ; Coffee: Americano Club-Mate: cold ' ,
353+ ],
354+ 'string with 2 adjacent semicolons in the middle ' => [
355+ 'Earl Grey: hot;; Coffee: Americano ' ,
356+ 'Earl Grey: hot; Coffee: Americano ' ,
357+ ],
358+ 'string with 3 adjacent semicolons in the middle ' => [
359+ 'Earl Grey: hot;;; Coffee: Americano ' ,
360+ 'Earl Grey: hot;; Coffee: Americano ' ,
347361 ],
348- 'string with 2 adjacent semicolons in the middle ' => ['tea ;; coffee ' , 'tea ; coffee ' ],
349- 'string with 3 adjacent semicolons in the middle ' => ['tea ;;; coffee ' , 'tea ;; coffee ' ],
350362 ];
351363 }
352364
0 commit comments