public function testApiReplace_ReplacesProperSubstring()
{
$search = substr($this->initialString, 3, 3);
$result = $this->buffer->replace($search, $this->appendString);
$this->assertSame(1, $result);
$this->assertSame(substr($this->initialString, 0, 3) . $this->appendString . substr($this->initialString, 6), (string) $this->buffer);
}