示例#1
0
 public function setUp()
 {
     parent::setUp();
     $_SERVER['PHWOOLCON_MIGRATION_PATH'] = TEST_ROOT_PATH . '/bin/migrations';
     $this->cli = Cli::register($this->di);
     $this->cli->setAutoExit(false);
     $this->output = new BufferedOutput();
 }
示例#2
0
 public function createProgressBar($max = 0)
 {
     $progress = $this->interactive->createProgressBar($max);
     $progress->setBarWidth(Cli::getConsoleWidth() - 12 - strlen($max) * 2);
     return $progress;
 }
示例#3
0
 public function testGetConsoleWidth()
 {
     $this->assertTrue(is_numeric(Cli::getConsoleWidth()));
 }