replay() public method

public replay ( StreamName $streamName, DateTimeInterface $since = null, array $metadata = [] ) : ArrayIterator
$streamName Prooph\EventStore\Stream\StreamName
$since DateTimeInterface
$metadata array
return ArrayIterator
コード例 #1
0
 /**
  * @test
  */
 public function it_returns_nothing_when_trying_to_replay_non_existing_stream()
 {
     $streamName = $this->prophesize(StreamName::class);
     $streamName->toString()->willReturn('test');
     $this->assertCount(0, $this->adapter->replay($streamName->reveal(), null, []));
 }