File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1018,14 +1018,14 @@ public function testMaxSecondsBetweenRedraws()
10181018 $ bar ->setRedrawFrequency (4 ); // disable step based redraws
10191019 $ bar ->start ();
10201020
1021- $ bar ->setProgress (1 ); // No treshold hit, no redraw
1021+ $ bar ->setProgress (1 ); // No threshold hit, no redraw
10221022 $ bar ->maxSecondsBetweenRedraws (2 );
10231023 sleep (1 );
10241024 $ bar ->setProgress (2 ); // Still no redraw because it takes 2 seconds for a redraw
10251025 sleep (1 );
10261026 $ bar ->setProgress (3 ); // 1+1 = 2 -> redraw finally
10271027 $ bar ->setProgress (4 ); // step based redraw freq hit, redraw even without sleep
1028- $ bar ->setProgress (5 ); // No treshold hit, no redraw
1028+ $ bar ->setProgress (5 ); // No threshold hit, no redraw
10291029 $ bar ->maxSecondsBetweenRedraws (3 );
10301030 sleep (2 );
10311031 $ bar ->setProgress (6 ); // No redraw even though 2 seconds passed. Throttling has priority
@@ -1056,7 +1056,7 @@ public function testMinSecondsBetweenRedraws()
10561056 $ bar ->setProgress (3 ); // 1 second passed but we changed threshold, should not draw
10571057 sleep (1 );
10581058 $ bar ->setProgress (4 ); // 1+1 seconds = 2 seconds passed which conforms threshold, draw
1059- $ bar ->setProgress (5 ); // No treshold hit, no redraw
1059+ $ bar ->setProgress (5 ); // No threshold hit, no redraw
10601060
10611061 rewind ($ output ->getStream ());
10621062 $ this ->assertEquals (
You can’t perform that action at this time.
0 commit comments