public static function getData($subpath)
 {
     $subpath = Util::normalizePath($subpath);
     Mock::$logger->debug('start get data path: %s', $subpath);
     $file = new File($subpath);
     $ret = array();
     foreach (Mock::$filetype as $type) {
         $testFilePath = Util::normalizePath(Mock::$testPath . '/' . $file->getFilePathNoExt() . $type);
         Mock::$logger->debug('fetch test data path: %s type: %s', $testFilePath, $type);
         if (file_exists($testFilePath)) {
             if ($type == '.php') {
                 $testFile = new PHP($testFilePath);
             } else {
                 if ($type == '.json') {
                     $testFile = new JSON($testFilePath, array('encoding' => Mock::$encoding));
                 }
             }
             $ret = $testFile->getData();
             break;
         }
     }
     return $ret;
 }