예제 #1
0
 public static function init($root, $encoding = 'utf-8', array $opt = array())
 {
     Mock::$logger = Log::getLogger();
     $root = Util::normalizePath($root);
     Mock::$wwwRoot = $root;
     Mock::$testPath = $root . '/test';
     //set encoding
     Mock::setEncoding($encoding);
 }