コード例 #1
0
 /**
  * @test
  * @covers ::rollback
  */
 public function it_should_do_nothing_on_rollback()
 {
     $this->transaction->rollback();
 }
コード例 #2
0
 /**
  * @test
  * @covers ::push
  * @expectedException \PhpInPractice\Matters\Aggregate\Transaction\TransactionLimitedToASingleStreamException
  */
 public function it_should_throw_exception_when_pushing_events_from_multiple_streams()
 {
     $expectedEvents = [new WritableEvent(new UUID(), '123', [])];
     $this->transaction->push('streamUri', $expectedEvents);
     $this->transaction->push('streamUri2', $expectedEvents);
 }