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

PHPUnit 9.6.15 Warning - The configuration file did not pass validation! #287

Closed
otis22 opened this issue Jan 4, 2024 · 0 comments · Fixed by #288
Closed

PHPUnit 9.6.15 Warning - The configuration file did not pass validation! #287

otis22 opened this issue Jan 4, 2024 · 0 comments · Fixed by #288
Labels

Comments

@otis22
Copy link

otis22 commented Jan 4, 2024

What steps will reproduce the problem?

With php v 8.0 or lower.

composer install
./vendor/bin/phpunit 

What is the expected result?

Test pass without warnings

What do you get instead?

Phpunit shows warning:

PHPUnit 9.6.15 by Sebastian Bergmann and contributors.

  Warning - The configuration file did not pass validation!
  The following problems have been detected:

  Line 27:
  - Element 'source': This element is not expected.

  Test results may not be as expected.

Additional info

| PHP version | 8.0

Element 'source' is valid element for PHPUnit ^10.
But in composer.json we have "phpunit/phpunit": "^9.6|^10.0"

@xepozz xepozz linked a pull request Jan 4, 2024 that will close this issue
@samdark samdark added the type:bug Bug label Jan 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants