123456789101112131415161718192021222324252627282930313233343536 |
- <?php
- /**
- * Created by PhpStorm.
- * User: stanley-king
- * Date: 2016/10/7
- * Time: 下午1:03
- */
- define('BASE_ROOT_PATH',str_replace('/test','',dirname(__FILE__)));
- require_once(BASE_ROOT_PATH . '/fooder.php');
- require_once(BASE_ROOT_PATH . '/helper/search/searcher.php');
- require_once(BASE_ROOT_PATH . '/helper/search/server.php');
- require_once(BASE_ROOT_PATH . '/helper/search/processor.php');
- class TestSearch extends PHPUnit_Framework_TestCase
- {
- public static function setUpBeforeClass()
- {
- Base::run_util();
- }
- public function testInit()
- {
- $dict = new search\goods_dict();
- $dict->init();
- }
- public function testSearcher()
- {
- $searcher = new search\searcher();
- $result = $searcher->get_word('相宜本草红');
- }
- }
|