shift() public method

Remove the given number of characters (at most) from the buffer starting at the beginning.
public shift ( integer $length ) : string
$length integer
return string
Example #1
0
 public function testApiShift_DoesNotChangeBufferState_WhenNegativeLengthIsPassed()
 {
     $length = -1;
     $result = $this->buffer->shift($length);
     $this->assertSame('', $result);
     $this->assertSame($this->initialString, (string) $this->buffer);
 }