@@ -29,7 +29,7 @@ public function testMultipleStart()
29
29
30
30
rewind ($ output ->getStream ());
31
31
$ this ->assertEquals (<
9E88
/div>
32
- $ this -> generateOutput ( ' 0 [>---------------------------] ' ) .
32
+ ' 0 [>---------------------------] ' .
33
33
$ this ->generateOutput (' 1 [->--------------------------] ' ).
34
34
$ this ->generateOutput (' 0 [>---------------------------] ' ),
35
35
stream_get_contents ($ output ->getStream ())
@@ -44,7 +44,7 @@ public function testAdvance()
44
44
45
45
rewind ($ output ->getStream ());
46
46
$ this ->assertEquals (
47
- $ this -> generateOutput ( ' 0 [>---------------------------] ' ) .
47
+ ' 0 [>---------------------------] ' .
48
48
$ this ->generateOutput (' 1 [->--------------------------] ' ),
49
49
stream_get_contents ($ output ->getStream ())
50
50
);
@@ -58,7 +58,7 @@ public function testAdvanceWithStep()
58
58
59
59
rewind ($ output ->getStream ());
60
60
$ this ->assertEquals (
61
- $ this -> generateOutput ( ' 0 [>---------------------------] ' ) .
61
+ ' 0 [>---------------------------] ' .
62
62
$ this ->generateOutput (' 5 [----->----------------------] ' ),
63
63
stream_get_contents ($ output ->getStream ())
64
64
);
@@ -73,7 +73,7 @@ public function testAdvanceMultipleTimes()
73
73
74
74
rewind ($ output ->getStream ());
75
75
$ this ->assertEquals (
76
- $ this -> generateOutput ( ' 0 [>---------------------------] ' ) .
76
+ ' 0 [>---------------------------] ' .
77
77
$ this ->generateOutput (' 3 [--->------------------------] ' ).
78
78
$ this ->generateOutput (' 5 [----->----------------------] ' ),
79
79
stream_get_contents ($ output ->getStream ())
@@ -89,7 +89,7 @@ public function testAdvanceOverMax()
89
89
90
90
rewind ($ output ->getStream ());
91
91
$ this ->assertEquals (
92
- $ this -> generateOutput ( ' 9/10 [=========================>--] 90% ' ) .
92
+ ' 9/10 [=========================>--] 90% ' .
93
93
$ this ->generateOutput (' 10/10 [============================] 100% ' ).
94
94
$ this ->generateOutput (' 11/11 [============================] 100% ' ),
95
95
stream_get_contents ($ output ->getStream ())
@@ -99,7 +99,7 @@ public function testAdvanceOverMax()
99
99
public function testFormat ()
100
100
{
101
101
$ expected =
102
- $ this -> generateOutput ( ' 0/10 [>---------------------------] 0% ' ) .
102
+ ' 0/10 [>---------------------------] 0% ' .
103
103
$ this ->generateOutput (' 10/10 [============================] 100% ' ).
104
104
$ this ->generateOutput (' 10/10 [============================] 100% ' )
105
105
;
@@ -156,7 +156,7 @@ public function testCustomizations()
156
156
157
157
rewind ($ output ->getStream ());
158
158
$ this ->assertEquals (
159
- $ this -> generateOutput ( ' 0/10 [/ ] 0% ' ) .
159
+ ' 0/10 [/ ] 0% ' .
160
160
$ this ->generateOutput (' 1/10 [_/ ] 10% ' ),
161
161
stream_get_contents ($ output ->getStream ())
162
162
);
@@ -169,7 +169,7 @@ public function testDisplayWithoutStart()
169
169
170
170
rewind ($ output ->getStream ());
171
171
$ this ->assertEquals (
172
- $ this -> generateOutput ( ' 0/50 [>---------------------------] 0% ' ) ,
172
+ ' 0/50 [>---------------------------] 0% ' ,
173
173
stream_get_contents ($ output ->getStream ())
174
174
);
175
175
}
@@ -193,7 +193,7 @@ public function testFinishWithoutStart()
193
193
194
194
rewind ($ output ->getStream ());
195
195
$ this ->assertEquals (
196
- $ this -> generateOutput ( ' 50/50 [============================] 100% ' ) ,
196
+ ' 50/50 [============================] 100% ' ,
197
197
stream_get_contents ($ output ->getStream ())
198
198
);
199
199
}
@@ -208,7 +208,7 @@ public function testPercent()
208
208
209
209
rewind ($ output ->getStream ());
210
210
$ this ->assertEquals (
211
- $ this -> generateOutput ( ' 0/50 [>---------------------------] 0% ' ) .
211
+ ' 0/50 [>---------------------------] 0% ' .
212
212
$ this ->generateOutput (' 0/50 [>---------------------------] 0% ' ).
213
213
$ this ->generateOutput (' 1/50 [>---------------------------] 2% ' ).
214
214
$ this ->generateOutput (' 2/50 [=>--------------------------] 4% ' ),
@@ -230,7 +230,7 @@ public function testOverwriteWithShorterLine()
230
230
231
231
rewind ($ output ->getStream ());
232
232
$ this ->assertEquals (
233
- $ this -> generateOutput ( ' 0/50 [>---------------------------] 0% ' ) .
233
+ ' 0/50 [>---------------------------] 0% ' .
234
234
$ this ->generateOutput (' 0/50 [>---------------------------] 0% ' ).
235
235
$ this ->generateOutput (' 1/50 [>---------------------------] 2% ' ).
236
236
$ this ->generateOutput (' 2/50 [=>--------------------------] ' ),
@@ -247,7 +247,7 @@ public function testStartWithMax()
247
247
248
248
rewind ($ output ->getStream ());
249
249
$ this ->assertEquals (
250
- $ this -> generateOutput ( ' 0/50 [>---------------------------] ' ) .
250
+ ' 0/50 [>---------------------------] ' .
251
251
$ this ->generateOutput (' 1/50 [>---------------------------] ' ),
252
252
stream_get_contents ($ output ->getStream ())
253
253
);
@@ -264,7 +264,7 @@ public function testSetCurrentProgress()
264
264
265
265
rewind ($ output ->getStream ());
266
266
$ this ->assertEquals (
267
- $ this -> generateOutput ( ' 0/50 [>---------------------------] 0% ' ) .
267
+ ' 0/50 [>---------------------------] 0% ' .
268
268
$ this ->generateOutput (' 0/50 [>---------------------------] 0% ' ).
269
269
$ this ->generateOutput (' 1/50 [>---------------------------] 2% ' ).
270
270
$ this ->generateOutput (' 15/50 [========>-------------------] 30% ' ).
@@ -339,7 +339,7 @@ public function testMultiByteSupport()
339
339
340
340
rewind ($ output ->getStream ());
341
341
$ this ->assertEquals (
342
- $ this -> generateOutput ( ' 0 [>---------------------------] ' ) .
342
+ ' 0 [>---------------------------] ' .
343
343
$ this ->generateOutput (' 3 [■■■>------------------------] ' ),
344
344
stream_get_contents ($ output ->getStream ())
345
345
);
@@ -354,7 +354,7 @@ public function testClear()
354
354
355
355
rewind ($ output ->getStream ());
356
356
$ this ->assertEquals (
357
- $ this -> generateOutput ( ' 0/50 [>---------------------------] 0% ' ) .
357
+ ' 0/50 [>---------------------------] 0% ' .
358
358
$ this ->generateOutput (' 25/50 [==============>-------------] 50% ' ).
359
359
$ this ->generateOutput ('' ),
360
360
stream_get_contents ($ output ->getStream ())
@@ -371,7 +371,7 @@ public function testPercentNotHundredBeforeComplete()
371
371
372
372
rewind ($ output ->getStream ());
373
373
$ this ->assertEquals (
374
- $ this -> generateOutput ( ' 0/200 [>---------------------------] 0% ' ) .
374
+ ' 0/200 [>---------------------------] 0% ' .
375
375
$ this ->generateOutput (' 0/200 [>---------------------------] 0% ' ).
376
376
$ this ->generateOutput (' 199/200 [===========================>] 99% ' ).
377
377
$ this ->generateOutput (' 200/200 [============================] 100% ' ),
@@ -471,9 +471,9 @@ public function testParallelBars()
471
471
472
472
rewind ($ output ->getStream ());
473
473
$ this ->assertEquals (
474
- $ this -> generateOutput ( ' 0/2 [>---------------------------] 0% ' ) ."\n" .
475
- $ this -> generateOutput ( ' 0/3 [#---------------------------] 0% ' ) ."\n" .
476
- rtrim ($ this -> generateOutput ( ' 0 [>---------------------------] ' ) ).
474
+ ' 0/2 [>---------------------------] 0% ' ."\n" .
475
+ ' 0/3 [#---------------------------] 0% ' ."\n" .
476
+ rtrim (' 0 [>---------------------------] ' ).
477
477
478
478
"\033[2A " .
479
479
$ this ->generateOutput (' 1/2 [==============>-------------] 50% ' )."\n" .
@@ -511,7 +511,7 @@ public function testWithoutMax()
511
511
512
512
rewind ($ output ->getStream ());
513
513
$ this ->assertEquals (
514
- rtrim ($ this -> generateOutput ( ' 0 [>---------------------------] ' ) ).
514
+ rtrim (' 0 [>---------------------------] ' ).
515
515
rtrim ($ this ->generateOutput (' 1 [->--------------------------] ' )).
516
516
rtrim ($ this ->generateOutput (' 2 [-->-------------------------] ' )).
517
517
rtrim ($ this ->generateOutput (' 3 [--->------------------------] ' )).
@@ -534,7 +534,7 @@ public function testAddingPlaceholderFormatter()
534
534
535
535
rewind ($ output ->getStream ());
536
536
$ this ->assertEquals (
537
- $ this -> generateOutput ( ' 3 [>---------------------------] ' ) .
537
+ ' 3 [>---------------------------] ' .
538
538
$ this ->generateOutput (' 2 [=========>------------------] ' ).
539
539
$ this ->generateOutput (' 0 [============================] ' ),
540
540
stream_get_contents ($ output ->getStream ())
@@ -553,7 +553,7 @@ public function testMultilineFormat()
553
553
554
554
rewind ($ output ->getStream ());
555
555
$ this ->assertEquals (
556
- $ this -> generateOutput ( ">--------------------------- \nfoobar " ) .
556
+ ">--------------------------- \nfoobar " .
557
557
$ this ->generateOutput ("=========>------------------ \nfoobar " ).
558
558
"\x0D\x1B[2K \x1B[1A \x1B[2K " .
559
559
$ this ->generateOutput ("============================ \nfoobar " ),
@@ -588,11 +588,11 @@ public function testAnsiColorsAndEmojis()
588
588
589
589
rewind ($ output ->getStream ());
590
590
$ this ->assertEquals (
591
- $ this -> generateOutput (
591
+
592
592
" \033[44;37m Starting the demo... fingers crossed \033[0m \n" .
593
593
' 0/15 ' .$ progress .str_repeat ($ empty , 26 )." 0% \n" .
594
594
" \xf0\x9f\x8f\x81 < 1 sec \033[44;37m 0 B \033[0m "
595
- ) .
595
+ .
596
596
$ this ->generateOutput (
597
597
" \033[44;37m Looks good to me... \033[0m \n" .
598
598
' 4/15 ' .str_repeat ($ done , 7 ).$ progress .str_repeat ($ empty , 19 )." 26% \n" .
@@ -614,7 +614,7 @@ public function testSetFormat()
614
614
$ bar ->start ();
615
615
rewind ($ output ->getStream ());
616
616
$ this ->assertEquals (
617
- $ this -> generateOutput ( ' 0 [>---------------------------] ' ) ,
617
+ ' 0 [>---------------------------] ' ,
618
618
stream_get_contents ($ output ->getStream ())
619
619
);
620
620
@@ -623,7 +623,7 @@ public function testSetFormat()
623
623
$ bar ->start ();
624
624
rewind ($ output ->getStream ());
625
625
$ this ->assertEquals (
626
- $ this -> generateOutput ( ' 0/10 [>---------------------------] 0% ' ) ,
626
+ ' 0/10 [>---------------------------] 0% ' ,
627
627
stream_get_contents ($ output ->getStream ())
628
628
);
629
629
}
0 commit comments