Exemplo n.º 1
0
 function it_starts_progress(ProgressBar $progressBar, RunnerEvent $event, TasksCollection $tasks)
 {
     $tasks->count()->willReturn(2);
     $event->getTasks()->willReturn($tasks);
     $progressBar->setFormat(Argument::type('string'))->shouldBeCalled();
     $progressBar->setOverwrite(false)->shouldBeCalled();
     $progressBar->setMessage(Argument::type('string'))->shouldBeCalled();
     $progressBar->start(2)->shouldBeCalled();
     $this->startProgress($event);
 }