public function testApiInsert_InsertsDataAtProperPosition() { $position = 10; $this->buffer->insert($this->appendString, $position); $this->assertSame(substr($this->initialString, 0, $position) . $this->appendString . substr($this->initialString, $position), (string) $this->buffer); }