public function test4()
 {
     if ($this->numberOfDocumentsProcessed == -1) {
         print 'Cannot run a test on documents unless test (Document test) has been run' . PHP_EOL;
         return;
     }
     print 'Testing for known problems in documents directory cross-referenced with arkivstruktur.xml' . PHP_EOL;
     $testProperty = new DocumentDirectoryTestProperty(Constants::TEST_DOCUMENT_DIRECTORY);
     $documentDirectoryTest = new DocumentDirectoryTest(Constants::TEST_DOCUMENT_DIRECTORY, $this->dokumenterDirectory, $this->documentListHandler, $testProperty);
     $documentDirectoryTest->runTest();
     $this->testResultsHandler->addResult($testProperty, Constants::TEST_TYPE_A7);
     print $testProperty . PHP_EOL;
 }
 public function testA6()
 {
     $this->logger->info('START test A6 :');
     $testProperty = new DocumentDirectoryTestProperty(Constants::TEST_DOCUMENT_DIRECTORY);
     try {
         $this->documentListOverview();
         if ($this->statistics === null) {
             $this->parseArkivstruktur();
         }
         $numberOfDocumentsProcessed = $this->statistics->getNumberOfDocumentObjectProcessed();
         $documentDirectoryTest = new DocumentDirectoryTest(Constants::TEST_DOCUMENT_DIRECTORY, $this->dokumenterDirectory, $this->documentListHandler, $testProperty);
         $documentDirectoryTest->runTest();
         if ($testProperty->getTestResult() == true) {
             $this->logger->info(' RESULT No Errors found when processing dokumenter directory.');
         } else {
             $this->logger->error(' RESULT Errors found when processing dokumenter directory. See log file for details.');
         }
         $this->testResultsHandler->addResult($testProperty, Constants::TEST_TYPE_A7);
     } catch (Exception $e) {
         $this->logger->error('Error when attempting test' . $testProperty->getDescription() . ". The following exception occured " . $e);
     }
     $this->logger->info('END test A6');
     $this->logger->info('');
 }