// Log debug log filepath $strDescription = '-- debug log filepath "' . $filepathDebugLog . '"' . PHP_EOL; $strLine = ''; logLog(0, $strDescription, $strLine, 2); ### Test well-formed if ($bArrCustom[1]) { $thisTestNameWellFormed = 'Well formed test'; $thisDirectory = $strDatasetDir; $thisFilename = $filenameXmlReaderIn; $thisXMLWellFormedTestProperty = new XMLWellFormedTestProperty(Constants::TEST_XMLTEST_VALIDATION_WELLFORMED); $strTemp = implode('/', array($thisDirectory, $thisFilename)); print $strTemp . PHP_EOL; $thisXMLTestWellFormed = new XMLTestWellFormed($thisTestNameWellFormed, $thisDirectory, $thisFilename, $thisXMLWellFormedTestProperty); $thisXMLTestWellFormed->runTest(); // Log XML Reader in description report $strDescription = $thisXMLWellFormedTestProperty->getDescriptionReport() . PHP_EOL; $strLine = ''; logLog(0, $strDescription, $strLine, 2); // Log XML Reader in description $strDescription = $thisXMLWellFormedTestProperty->getDescription() . PHP_EOL; $strLine = ''; logLog(0, $strDescription, $strLine, 2); ## well-formed errors? ## $nXmlWellFormedError = count(libxml_get_errors()); if (0 < $nXmlWellFormedError) { // Error: XML not well-formed $strDescription = PHP_EOL . '## error: xml file is NOT well-formed, error count = ' . $nXmlWellFormedError . ' ##' . PHP_EOL; $strLine = $thisDirectory . '/' . $thisFilename; logError(0, $strDescription, $strLine, 2); // Open error logfile for this xml-file if (!$bDebugLogFileOpen) {