/** * 测试创建索引 * * @return null */ public function testIndex() { // TODO 测试拼音 的 储存 // TODO 拼音的读取 // TODO 更多的插件 $this->comment('start index...'); $bank = new Bank(); $bank->robAll(); $sentences = self::getData(); foreach ($sentences as $sentence) { $bank->deposit(new Coin($sentence)); } $this->assertTrue(true); return null; }
/** * 清空数据库 * * @return mixed|void */ public function clear() { return $this->bank->robAll(); }