Skip to content
New issue

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

php-cli run produces notice Notice: Undefined index: _ in /prep/wp-tests-config.php because of $SERVER['_'] #178

Open
grooverdan opened this issue Sep 9, 2022 · 0 comments
Labels

Comments

@grooverdan
Copy link
Contributor

Describe the bug

During running test.php encountered this notice

Notice: Undefined index: _ in /prep/wp-tests-config.php on line 84

(my line numbers might be a bit different due to other changes in the PRs submitted).

To Reproduce

From https://jira.mariadb.org/browse/MDBF-467 (Except using FROM php:7.4-cli as the Dockerfile start due to 8.0+ errors).

Expected behavior

No "Notice"

Additional context

I traced it down to:
https://github.com/WordPress/phpunit-test-runner/blob/master/prepare.php#L99

I assume $_SERVER isn't set during CLI runs.

@grooverdan grooverdan added the bug label Sep 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant