We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trailing slash after %s in XdebugFilterScriptGenerator results in 0% coverage on windows as it has backslash as separator.
%s
phpunit/src/Util/XdebugFilterScriptGenerator.php
Line 59 in c2fa2fc
Current code on windows generates this xdebug-filter.php
xdebug-filter.php
<?php declare(strict_types=1); if (!\function_exists('xdebug_set_filter')) { return; } \xdebug_set_filter( \XDEBUG_FILTER_CODE_COVERAGE, \XDEBUG_PATH_WHITELIST, [ 'C:\path\to\dir/' ] );
Correct xdebug-filter.php should be
<?php declare(strict_types=1); if (!\function_exists('xdebug_set_filter')) { return; } \xdebug_set_filter( \XDEBUG_FILTER_CODE_COVERAGE, \XDEBUG_PATH_WHITELIST, [ 'C:\path\to\dir\\' ] );
So constant DIRECTORY_SEPARATOR can be used with proper escaping.
DIRECTORY_SEPARATOR
The text was updated successfully, but these errors were encountered:
Hi @sebastianbergmann I will submit a PR in a bit.
Sorry, something went wrong.
002c0e2
@sebastianbergmann Your patch gives a syntax error. See #3835 (comment)
sebastianbergmann
No branches or pull requests
Trailing slash after
%s
in XdebugFilterScriptGenerator results in 0% coverage on windows as it has backslash as separator.phpunit/src/Util/XdebugFilterScriptGenerator.php
Line 59 in c2fa2fc
Current code on windows generates this
xdebug-filter.php
Correct
xdebug-filter.php
should beSo constant
DIRECTORY_SEPARATOR
can be used with proper escaping.The text was updated successfully, but these errors were encountered: