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
Hi,
I managed to setup collision without issues in a project using PHPUnit v9 and collision v6.
However it was quite hard to set it up in a project using PHPUnit v10 and collision v7.
Full context:
After digging a lot, I see that https://github.com/nunomaduro/collision/blob/v7.x/src/Adapters/Phpunit/Autoload.php is loaded... but by PHPUnit, so setting the COLLISION_PRINTER var in phpunit.xml can't trigger it.
COLLISION_PRINTER
I have to call this manually in my tests/bootstrap.php file (that is configured in PHPUnit config):
\NunoMaduro\Collision\Adapters\Phpunit\Subscribers\EnsurePrinterIsRegisteredSubscriber::register();
However, calling PHPUnit by passing the COLLISION_PRINTER var there does work:
COLLISION_PRINTER=ReportablePrinter vendor/bin/phpunit tests/Twig/ --no-output
Is this expected? Should I stick calling register() manually?
The text was updated successfully, but these errors were encountered:
update illuminate/contracts ^v10.17 carbon ^2.67
illuminate/contracts ^v10.17
carbon ^2.67
Sorry, something went wrong.
any insights regarding this @nunomaduro ? We're seeing a lot of failure across our pipelines, for instance: https://github.com/oneduo/laravel-gitlab-webhook-client/actions/runs/6518876577 It almost seems to be randomly occurring
Additionally, I would want to keep compatibility with 10.x rather than locking to a higher version
Thanks
No branches or pull requests
Hi,
I managed to setup collision without issues in a project using PHPUnit v9 and collision v6.
However it was quite hard to set it up in a project using PHPUnit v10 and collision v7.
Full context:
After digging a lot, I see that https://github.com/nunomaduro/collision/blob/v7.x/src/Adapters/Phpunit/Autoload.php is loaded... but by PHPUnit, so setting the
COLLISION_PRINTER
var in phpunit.xml can't trigger it.I have to call this manually in my tests/bootstrap.php file (that is configured in PHPUnit config):
However, calling PHPUnit by passing the
COLLISION_PRINTER
var there does work:Is this expected? Should I stick calling register() manually?
The text was updated successfully, but these errors were encountered: