Пример #1
0
 public function it_should_handle_transaction(Channel $channel)
 {
     $stuff = function (Channel $channel) {
     };
     $channel->transaction($stuff)->shouldBeCalled();
     $this->transaction($stuff);
 }
Пример #2
0
 /**
  * @param \Closure $closure
  *
  * @throws \Evaneos\Hector\Exception\HectorException
  *
  * @return bool
  */
 public function transaction(\Closure $closure)
 {
     return $this->channel->transaction($closure);
 }