public function testModifyCommentFail() { $commentTable = new CommentModel(); $comment = $commentTable->find(); $ret = $commentTable->modifyCommentById($comment['id'], ''); $this->assertTrue($ret == false && $commentTable->getError() == '内容不能为空'); }