seek() public method

Move to the given position in the buffer.
public seek ( integer $position )
$position integer
Ejemplo n.º 1
0
 public function testApiSeek_WhenInvalidPositionIsPassed()
 {
     $this->iterator->seek(-1);
     $this->assertSame(0, $this->iterator->key());
 }