public function testTruncateMatchBefore() { $s = new Stringizer("キラキラした"); $this->assertEquals("ラキラした", $s->truncateMatch("ラ", true)); }