Esempio n. 1
0
 private function fetchDumpFile($dumpPath)
 {
     if (!$this->phpWrapper->file_exists($dumpPath)) {
         throw new \RuntimeException(sprintf("%s: could not open dump file %s", __CLASS__, $dumpPath), 1405613538);
     }
     $tmp = json_decode($this->phpWrapper->file_get_contents($dumpPath), TRUE);
     if (!is_array($tmp)) {
         throw new \RuntimeException(sprintf("%s: dump file decode error", __CLASS__), 1405613539);
     }
     return $tmp;
 }