Kraken\_Unit\Util\Buffer\BufferTest::testApiRemove_RemovesAndReturnsValidData_WhenInvalidOffsetIsPassed PHP Method

testApiRemove_RemovesAndReturnsValidData_WhenInvalidOffsetIsPassed() public method

    public function testApiRemove_RemovesAndReturnsValidData_WhenInvalidOffsetIsPassed()
    {
        $length = 10;
        $offset = -1;
        $result = $this->buffer->remove($length, $offset);
        $this->assertSame(substr($this->initialString, 0, $length), $result);
        $this->assertSame(substr($this->initialString, $length), (string) $this->buffer);
    }