public function test_that_prev_stores_bucket_instance() { $bucket = new TerminalBucket(); $prev = new TerminalBucket(); $bucket->setPrev($prev); $this->assertSame($prev, $bucket->prev()); }
/** * Sets the pointer to the last bucket * * @return void */ public function end() { $this->current = $this->tail->prev(); $this->offset = $this->count - 1; }