public static function backward(EventStoreInterface $eventStore, $streamName) { return new self($eventStore, $streamName, LinkRelation::FIRST(), LinkRelation::NEXT(), function (array $array) { return $array; }); }
/** * @test */ public function navigate_stream_using_missing_link_returns_null() { $streamName = $this->prepareTestStream(1); $head = $this->es->openStreamFeed($streamName); $next = $this->es->navigateStreamFeed($head, LinkRelation::NEXT()); $this->assertNull($next); }