Example #1
0
 /**
  * @covers ::writeProgress
  */
 public function testWriteProgressWrapLine()
 {
     $project = new Project(array(), array(), false);
     $output = $this->getOutputter();
     for ($i = 0; $i < 200; ++$i) {
         $project->writeProgress(File::RESULT_OK, $output);
     }
     $this->assertEquals(implode(PHP_EOL, array(str_repeat('.', 80), str_repeat('.', 80), str_repeat('.', 40))), $this->getDisplay($output));
 }