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