@@ -337,8 +337,8 @@ public function testOverwriteWithSectionOutput()
337
337
rewind ($ output ->getStream ());
338
338
$ this ->assertEquals (
339
339
' 0/50 [>---------------------------] 0% ' .\PHP_EOL .
340
- "\x1b[1A \x1b[0J " .' 1/50 [>---------------------------] 2% ' .\PHP_EOL .
341
- "\x1b[1A \x1b[0J " .' 2/50 [=>--------------------------] 4% ' .\PHP_EOL ,
340
+ "\x1b[2A \x1b[0J " .' 1/50 [>---------------------------] 2% ' .\PHP_EOL .
341
+ "\x1b[2A \x1b[0J " .' 2/50 [=>--------------------------] 4% ' .\PHP_EOL ,
342
342
stream_get_contents ($ output ->getStream ())
343
343
);
344
344
}
@@ -364,9 +364,9 @@ public function testOverwriteMultipleProgressBarsWithSectionOutputs()
364
364
$ this ->assertEquals (
365
365
' 0/50 [>---------------------------] 0% ' .\PHP_EOL .
366
366
' 0/50 [>---------------------------] 0% ' .\PHP_EOL .
367
- "\x1b[1A \x1b[0J " .' 1/50 [>---------------------------] 2% ' .\PHP_EOL .
368
367
"\x1b[2A \x1b[0J " .' 1/50 [>---------------------------] 2% ' .\PHP_EOL .
369
- "\x1b[1A \x1b[0J " .' 1/50 [>---------------------------] 2% ' .\PHP_EOL .
368
+ "\x1b[2A \x1b[0J " .' 1/50 [>---------------------------] 2% ' .\PHP_EOL .
369
+ ' 1/50 [>---------------------------] 2% ' .\PHP_EOL .
370
370
' 1/50 [>---------------------------] 2% ' .\PHP_EOL ,
371
371
stream_get_contents ($ stream ->getStream ())
372
372
);
@@ -395,10 +395,10 @@ public function testMultipleSectionsWithCustomFormat()
395
395
396
396
$ this ->assertEquals (' 0/50 [>---------------------------] 0% ' .\PHP_EOL .
397
397
' 0/50 [>] 0% Fruitcake marzipan toffee. Cupcake gummi bears tart dessert ice cream chupa chups cupcake chocolate bar sesame snaps. Croissant halvah cookie jujubes powder macaroon. Fruitcake bear claw bonbon jelly beans oat cake pie muffin Fruitcake marzipan toffee. ' .\PHP_EOL .
398
- "\x1b[4A \x1b[0J " .' 0/50 [>] 0% Fruitcake marzipan toffee. Cupcake gummi bears tart dessert ice cream chupa chups cupcake chocolate bar sesame snaps. Croissant halvah cookie jujubes powder macaroon. Fruitcake bear claw bonbon jelly beans oat cake pie muffin Fruitcake marzipan toffee. ' .\PHP_EOL .
398
+ "\x1b[5A \x1b[0J " .' 0/50 [>] 0% Fruitcake marzipan toffee. Cupcake gummi bears tart dessert ice cream chupa chups cupcake chocolate bar sesame snaps. Croissant halvah cookie jujubes powder macaroon. Fruitcake bear claw bonbon jelly beans oat cake pie muffin Fruitcake marzipan toffee. ' .\PHP_EOL .
399
399
"\x1b[3A \x1b[0J " .' 1/50 [>---------------------------] 2% ' .\PHP_EOL .
400
400
' 0/50 [>] 0% Fruitcake marzipan toffee. Cupcake gummi bears tart dessert ice cream chupa chups cupcake chocolate bar sesame snaps. Croissant halvah cookie jujubes powder macaroon. Fruitcake bear claw bonbon jelly beans oat cake pie muffin Fruitcake marzipan toffee. ' .\PHP_EOL .
401
- "\x1b[3A \x1b[0J " .' 1/50 [>] 2% Fruitcake marzipan toffee. Cupcake gummi bears tart dessert ice cream chupa chups cupcake chocolate bar sesame snaps. Croissant halvah cookie jujubes powder macaroon. Fruitcake bear claw bonbon jelly beans oat cake pie muffin Fruitcake marzipan toffee. ' .\PHP_EOL ,
401
+ "\x1b[4A \x1b[0J " .' 1/50 [>] 2% Fruitcake marzipan toffee. Cupcake gummi bears tart dessert ice cream chupa chups cupcake chocolate bar sesame snaps. Croissant halvah cookie jujubes powder macaroon. Fruitcake bear claw bonbon jelly beans oat cake pie muffin Fruitcake marzipan toffee. ' .\PHP_EOL ,
402
402
stream_get_contents ($ stream ->getStream ())
403
403
);
404
404
}
0 commit comments