/**
  * @covers Veles\Tools\CliProgressBar::update
  * @covers Veles\Tools\CliProgressBar::calcParams
  */
 public function testUpdateTwo()
 {
     $mem_string = 'mem-string';
     $stat_string = 'stat-string';
     $status = $stat_string . $mem_string;
     $bar = '============================================================';
     $end = "\n";
     $this->object = $this->getMockBuilder('\\Veles\\Tools\\CliProgressBar')->setConstructorArgs([60])->setMethods(['getStatusString', 'getMemString'])->getMock();
     $this->object->expects($this->once())->method('getStatusString')->willReturn($stat_string);
     $this->object->expects($this->once())->method('getMemString')->willReturn($mem_string);
     $this->expectOutputString("[{$bar}>]{$status}{$end}[?25h");
     $this->object->update(60);
 }