public function testSegmenterSentence1() { $result = Analyzer::segment('万一に備えて傘を持っていった方がいいだろうな。'); $this->assertSame(array('万一', 'に', '備え', 'て', '傘', 'を', '持っ', 'て', 'いっ', 'た', '方', 'が', 'いい', 'だろ', 'う', 'な', '。'), $result); }