-
-
Notifications
You must be signed in to change notification settings - Fork 221
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
<bootstrap> instead of <extension> expected in phpunit 10.4 configuration #612
Comments
This seems to be related to #608 and has already been fixed with #609, but didn't make it into a release so far. I had the same error and can confirm that changing it to |
Thanks, it works indeed. The docs of Symfony Panther are not up-to-date, so I thank this issue is valid even from the configuration standpoint. @dunglas do you have an ETA on the next release for this package ? This is a blocking bug for any configuration as far as I understand. |
Release 2.1.1 has been made by @dunglas on Dec 3rd. This solves the issue: With 2.1.0: $ composer test
> phpunit
PHPUnit 10.5.0 by Sebastian Bergmann and contributors.
Runtime: PHP 8.1.13
Configuration: /var/www/phpunit.xml.dist
............ 12 / 12 (100%)
Time: 00:10.290, Memory: 30.00 MB
There were 24 PHPUnit test runner warnings:
1) Exception in third-party event subscriber: Too few arguments to function Symfony\Component\Panther\ServerExtensionLegacy::executeBeforeTest(), 0 passed in /var/www/vendor/symfony/panther/src/ServerExtension.php on line 81 and exactly 1 expected
[...] With 2.1.1: $ composer update symfony/panther
Loading composer repositories with package information
Updating dependencies
Lock file operations: 0 installs, 1 update, 0 removals
- Upgrading symfony/panther (v2.1.0 => v2.1.1)
Writing lock file
[...]
$ composer test
> phpunit
PHPUnit 10.5.0 by Sebastian Bergmann and contributors.
Runtime: PHP 8.1.13
Configuration: /var/www/phpunit.xml.dist
............ 12 / 12 (100%)
Time: 00:09.515, Memory: 30.00 MB
OK (12 tests, 31 assertions) This ticket can be closed. |
Hi, when upgrading to phpunit 10.4, I get a warning:
This is my configuration:
But if I replace the extension by the bootstrap xml element as expected, my whole test suite crashes:
I believe it resembles #608 but I can't find any mention of this "bootstrap" element in the configuration, the docs in this case are not up-to-date with the requirements of phpunit it seems.
Package versions:
The text was updated successfully, but these errors were encountered: