/** * @expectedException \InvalidArgumentException */ public function testInvalidEndsWith2() { $str = new MString('一二三四五'); $this->assertFalse($str->endsWith(new MString('一二三四五一二三四五'))); }