Beispiel #1
0
 public function createProgressBar($max = 0)
 {
     $progress = $this->interactive->createProgressBar($max);
     $progress->setBarWidth(Cli::getConsoleWidth() - 12 - strlen($max) * 2);
     return $progress;
 }
Beispiel #2
0
 public function testGetConsoleWidth()
 {
     $this->assertTrue(is_numeric(Cli::getConsoleWidth()));
 }