Tolerance\Operation\Runner\BufferedOperationRunner::run PHP Method

run() public method

public run ( Tolerance\Operation\Operation $operation )
$operation Tolerance\Operation\Operation
    public function run(Operation $operation)
    {
        $this->buffer->add($operation);
    }

Usage Example

Beispiel #1
0
 /**
  * @Given there is an operation in a buffered runner
  */
 public function thereIsAnOperationInABufferedRunner()
 {
     $this->bufferedOperationRunner->run(new Callback(function () {
         $this->response = 'Buffered operation ran!';
     }));
 }