Exemplo n.º 1
0
    exit;
}
if (isset($options["v"]) == false) {
    print "Ingen version specified. Example usage -v31" . PHP_EOL;
    exit;
}
if (isset($options["i"]) == false && isset($options["t"]) == true && strcasecmp($options["t"], Constants::TEST_NOARK5) == 0) {
    print "Ingen info.xml fil angitt for Noark 5 test. Example usage -tnoark5 -i/home/user/info.xml" . PHP_EOL;
    exit;
}
ini_set('memory_limit', '1024M');
$directory = $options["d"];
$testType = $options["t"];
$testTypeVersion = $options["v"];
$infoFile = $options["i"];
$infoFileHandler = new InfoFileHandler($infoFile);
$infoFileHandler->processInfofile();
$testResultsHandler = new TestResultsHandler();
if (strcasecmp($testType, Constants::TEST_TYPE_NOARK5) == 0 && strcasecmp($testTypeVersion, Constants::TEST_TYPE_NOARK5_VERSION_31) == 0) {
    $arkivUttrekk = new ArkivUttrekk();
    $arkivUttrekkFile = join(DIRECTORY_SEPARATOR, array($directory, Constants::NAME_ARKIVUTTREKK_XML));
    $arkivUttrekkHandler = new ArkivuttrekkHandler($arkivUttrekkFile, $arkivUttrekk);
    $arkivUttrekkHandler->processArkivuttrekk();
    runNoark531Test($directory, $testResultsHandler, $arkivUttrekk, $infoFileHandler);
}
/*
 *
 * TODO!!!!!StandardTest9 is filaing. Need reference to arkivuttrekk.xml file
 *  Need to find the cde that maps to the different files and reuse the link to the
 *  file from there
 *
Exemplo n.º 2
0
 public function processInfoFile($infoFilename)
 {
     $infoFileHandler = new InfoFileHandler($infoFilename);
     $infoFileHandler->processInfofile();
     $this->infoFileDetails = $infoFileHandler->getInfoFileDetails();
     $infoFileHandler = null;
 }