public testApiShift_RemovesDataFromTheBeginning ( ) |
public function testApiShift_RemovesDataFromTheBeginning()
{
$length = 10;
$result = $this->buffer->shift($length);
$this->assertSame(substr($this->initialString, 0, $length), $result);
$this->assertSame(substr($this->initialString, $length), (string) $this->buffer);
}