Esempio n. 1
0
 public function testReplace()
 {
     $str = new MString('一二三四五');
     $str2 = $str->replace(new MString('一'), new MString('a'));
     $this->assertEquals('a二三四五', \strval($str2));
 }