appendTo() public méthode

public appendTo ( StreamName $streamName, Iterator $domainEvents ) : void
$streamName Prooph\EventStore\Stream\StreamName
$domainEvents Iterator
Résultat void
 /**
  * @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(), []);
 }