public function testReplaceFirst() { $str = new Str("Hello, world."); $this->assertTrue($str->replaceFirst("/o/", "O")->equals("HellO, world.")); }