Kraken\Util\Buffer\BufferInterface::unshift PHP Method

unshift() public method

Put the given string at the beginning of the buffer.
public unshift ( string $data )
$data string
    public function unshift($data);

Usage Example

Beispiel #1
0
 public function testApiUnshift_AddsDataAtTheBeginning()
 {
     $this->buffer->unshift($this->appendString);
     $this->assertSame($this->appendString . $this->initialString, (string) $this->buffer);
 }