X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/af74c037f4fa28858fb36086b41b87e03921a049..4c52777ef03738803845f9ee58d269d93bbb9c3d:/test/bdd/steps/cgi-with-coverage.php 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']; - -