public function it_should_handle_transaction(Channel $channel) { $stuff = function (Channel $channel) { }; $channel->transaction($stuff)->shouldBeCalled(); $this->transaction($stuff); }
/** * @param \Closure $closure * * @throws \Evaneos\Hector\Exception\HectorException * * @return bool */ public function transaction(\Closure $closure) { return $this->channel->transaction($closure); }