예제 #1
0
파일: test.php 프로젝트: qxj/exp-sys-toy
<?php

// @(#) test.php  Time-stamp: <Julian Qian 2015-12-18 15:53:08>
// Copyright 2015 Julian Qian
// Author: Julian Qian <*****@*****.**>
// Version: $Id: test.php,v 0.1 2015-12-04 15:56:51 jqian Exp $
//
require_once __DIR__ . "/exp_sys.php";
// Logger::disable();
$total = 1;
$matched = 0;
ExpSys::instance();
for ($i = 0; $i < $total; $i++) {
    // ExpSys::instance()->reset_for_test();
    $value = ExpSys::instance()->get('search_send_distance');
    $params = ExpSys::instance()->diverted_params();
    if (count($params) > 0) {
        $matched++;
    }
}
Logger::enable();
Logger::info('matched %d/%d', $matched, $total);
예제 #2
0
파일: exp_sys.php 프로젝트: qxj/exp-sys-toy
 public static function instance()
 {
     if (self::$_instance == null) {
         self::$_instance = new ExpSys();
     }
     return self::$_instance;
 }