コード例 #1
0
 /**
  * @test
  * @covers ::commit
  */
 public function it_should_do_nothing_on_commit()
 {
     $this->eventstore->shouldReceive('writeToStream')->never();
     $this->transaction->commit();
 }
コード例 #2
0
 /**
  * @test
  * @covers ::commit
  * @covers ::push
  */
 public function it_should_not_commit_if_there_are_no_events()
 {
     $this->eventstore->shouldReceive('writeToStream')->never();
     $this->transaction->push('streamUri', []);
     $this->transaction->commit();
 }