Inheritance: implements Tolerance\Operation\Runner\OperationRunner
 function it_runs_all_the_buffered_operations(BufferedOperationRunner $bufferedOperationRunner, OperationRunnerRegistry $registry)
 {
     $this->beConstructedWith($registry);
     $registry->findAllByClass(BufferedOperationRunner::class)->willReturn([$bufferedOperationRunner]);
     $bufferedOperationRunner->runBufferedOperations()->shouldBeCalled();
     $this->onKernelTerminate();
 }
Beispiel #2
0
 /**
  * @Given there is an operation in a buffered runner
  */
 public function thereIsAnOperationInABufferedRunner()
 {
     $this->bufferedOperationRunner->run(new Callback(function () {
         $this->response = 'Buffered operation ran!';
     }));
 }