Author: Alexander Miertsch (contact@prooph.de)
Inheritance: implements Prooph\EventStore\Adapter\Adapter
Example #1
0
 /**
  * @test
  */
 public function it_returns_nothing_when_trying_to_load_events_by_metadata_from_on_non_existing_stream()
 {
     $streamName = $this->prophesize(StreamName::class);
     $streamName->toString()->willReturn('test');
     $this->assertEmpty($this->adapter->loadEventsByMetadataFrom($streamName->reveal(), []));
 }
 /**
  * @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, []));
 }