コード例 #1
0
ファイル: PublisherSpec.php プロジェクト: Evaneos/Hector
 public function it_should_handle_transaction(Channel $channel)
 {
     $stuff = function (Channel $channel) {
     };
     $channel->transaction($stuff)->shouldBeCalled();
     $this->transaction($stuff);
 }
コード例 #2
0
ファイル: Publisher.php プロジェクト: Evaneos/Hector
 /**
  * @param \Closure $closure
  *
  * @throws \Evaneos\Hector\Exception\HectorException
  *
  * @return bool
  */
 public function transaction(\Closure $closure)
 {
     return $this->channel->transaction($closure);
 }