File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -92,15 +92,15 @@ public static function formatTime($secs)
92
92
public static function formatMemory ($ memory )
93
93
{
94
94
if ($ memory >= 1024 * 1024 * 1024 ) {
95
- return sprintf ('%.1f GB ' , $ memory / 1024 / 1024 / 1024 );
95
+ return sprintf ('%.1f GiB ' , $ memory / 1024 / 1024 / 1024 );
96
96
}
97
97
98
98
if ($ memory >= 1024 * 1024 ) {
99
- return sprintf ('%.1f MB ' , $ memory / 1024 / 1024 );
99
+ return sprintf ('%.1f MiB ' , $ memory / 1024 / 1024 );
100
100
}
101
101
102
102
if ($ memory >= 1024 ) {
103
- return sprintf ('%d kB ' , $ memory / 1024 );
103
+ return sprintf ('%d KiB ' , $ memory / 1024 );
104
104
}
105
105
106
106
return sprintf ('%d B ' , $ memory );
Original file line number Diff line number Diff line change @@ -367,17 +367,17 @@ public function testAnsiColorsAndEmojis()
367
367
$ this ->generateOutput (
368
368
" \033[44;37m Starting the demo... fingers crossed \033[0m \n" .
369
369
" 0/15 " .$ progress .str_repeat ($ empty , 26 )." 0% \n" .
370
- " 🏁 1 sec \033[44;37m 0 B \033[0m "
370
+ " \xf0\x9f\x8f\x81 1 sec \033[44;37m 0 B \033[0m "
371
371
).
372
372
$ this ->generateOutput (
373
373
" \033[44;37m Looks good to me... \033[0m \n" .
374
374
" 4/15 " .str_repeat ($ done , 7 ).$ progress .str_repeat ($ empty , 19 )." 26% \n" .
375
- " 🏁 1 sec \033[41;37m 97 kB \033[0m "
375
+ " \xf0\x9f\x8f\x81 1 sec \033[41;37m 97 KiB \033[0m "
376
376
).
377
377
$ this ->generateOutput (
378
378
" \033[44;37m Thanks, bye \033[0m \n" .
379
379
" 15/15 " .str_repeat ($ done , 28 )." 100% \n" .
380
- " 🏁 1 sec \033[41;37m 195 kB \033[0m "
380
+ " \xf0\x9f\x8f\x81 1 sec \033[41;37m 195 KiB \033[0m "
381
381
),
382
382
stream_get_contents ($ output ->getStream ())
383
383
);
You can’t perform that action at this time.
0 commit comments