appendTo() public method

public appendTo ( StreamName $streamName, Iterator $domainEvents ) : void
$streamName Prooph\EventStore\Stream\StreamName
$domainEvents Iterator
return void
Exemplo n.º 1
0
 /**
  * @test
  * @expectedException Prooph\EventStore\Exception\StreamNotFoundException
  */
 public function it_throws_exception_when_trying_to_append_on_non_existing_stream()
 {
     $streamName = $this->prophesize(StreamName::class);
     $streamName->toString()->willReturn('test');
     $this->adapter->appendTo($streamName->reveal(), []);
 }