public function testEnd() { $self = $this->query->end('1234'); $this->assertInstanceOf(Query::class, $self); $res = $this->query->queryObject(); $this->assertEquals($res['endCursor'], '1234'); }