public function test_that_next_stores_bucket_instance() { $bucket = new TerminalBucket(); $next = new TerminalBucket(); $bucket->setNext($next); $this->assertSame($next, $bucket->next()); }
/** * Sets the pointer to the first bucket * * @return void */ public function rewind() { $this->current = $this->head->next(); $this->offset = 0; }