run(new TextReporter()); $testDatabase->run(new TextReporter()); $testSchema->run(new TextReporter()); $testTable->run(new TextReporter()); $testCommon->run(new TextReporter()); // Get the coverage data xml $xml = file_get_contents($cov_weburl . "?phpcoverage-action=get-coverage-xml"); // Cleanup the recording file_get_contents($cov_weburl . "?phpcoverage-action=cleanup"); $reporter = new HtmlCoverageReporter("phpPgAdmin Code coverage report","","$PHPCOVERAGE_REPORT_DIR"); // Sets the directories or file paths to be included in the code coverage recording. $includePaths = array(realpath($PHPCOVERAGE_APPBASE_PATH)); $excludePaths = array(realpath($PHPCOVERAGE_APPBASE_PATH)."/lang", realpath($PHPCOVERAGE_APPBASE_PATH)."/libraries/adodb/drivers"); $cov = new RemoteCoverageRecorder($includePaths, $excludePaths, $reporter); // Generate the code coverage report $cov->generateReport($xml); $reporter->printTextSummary(); ?>