loadEvents() public méthode

public loadEvents ( StreamName $streamName, array $metadata = [], null | integer $minVersion = null ) : Iterator
$streamName Prooph\EventStore\Stream\StreamName
$metadata array
$minVersion null | integer
Résultat Iterator
 /**
  * @test
  */
 public function it_returns_nothing_when_trying_to_load_events_by_metadata_fro_omn_non_existing_stream()
 {
     $streamName = $this->prophesize(StreamName::class);
     $streamName->toString()->willReturn('test');
     $this->assertEmpty($this->adapter->loadEvents($streamName->reveal(), []));
 }