Skip to content

Commit 8d5b01e

Browse files
committed
Fix minor typos
1 parent ca3dbfb commit 8d5b01e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Tests/Helper/ProgressBarTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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(

0 commit comments

Comments
 (0)