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