X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/af74c037f4fa28858fb36086b41b87e03921a049..cf0d6307d641e17e024af2e49eb73ebc30b23909:/test/bdd/steps/cgi-with-coverage.php?ds=sidebyside diff --git a/test/bdd/steps/cgi-with-coverage.php b/test/bdd/steps/cgi-with-coverage.php index 165a1b0c..6f0d79bb 100644 --- a/test/bdd/steps/cgi-with-coverage.php +++ b/test/bdd/steps/cgi-with-coverage.php @@ -1,6 +1,7 @@ stop(); @@ -9,12 +10,11 @@ function coverage_shutdown($oCoverage) } $covfilter = new SebastianBergmann\CodeCoverage\Filter(); -$covfilter->addDirectoryToWhitelist($_SERVER['COV_PHP_DIR']); +$covfilter->addDirectoryToWhitelist($_SERVER['COV_PHP_DIR'].'/lib-php'); +$covfilter->addDirectoryToWhitelist($_SERVER['COV_PHP_DIR'].'/website'); $coverage = new SebastianBergmann\CodeCoverage\CodeCoverage(null, $covfilter); $coverage->start($_SERVER['COV_TEST_NAME']); register_shutdown_function('coverage_shutdown', $coverage); include $_SERVER['COV_SCRIPT_FILENAME']; - -