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