public function testReplace() { $this->stringBuilder->replace(6, 7, 'The end is near! '); $this->assertEquals('Hello The end is near! World!', $this->stringBuilder->__toString()); }