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

Could not use "NunoMaduroCollisionAdaptersPhpunitPrinter" as printer: class does not exist #13

Open
matevisky opened this issue Mar 14, 2021 · 7 comments

Comments

@matevisky
Copy link

Strange a simple
php artisan test is working but
php artisan test --watch not and getting the following error:

php artisan test --watch

PHPUnit 9.5.2 by Sebastian Bergmann and contributors.

Could not use "NunoMaduroCollisionAdaptersPhpunitPrinter" as printer: class does not exist
@nunomaduro
Copy link
Member

Please create an issue on the collision repo.

@nunomaduro
Copy link
Member

Nevermind, cc @caneco

@owenvoke
Copy link
Member

I think this is an escaping issue with the command line flag. 🤔 No idea which part of this plugin is causing it to not be escaped though.

@owenvoke
Copy link
Member

owenvoke commented Mar 15, 2021

I'm pretty sure I know what's causing this, just going to do some tests.


So it's basically caused by the non-escaping of this line. But that works fine, and we can't double escape it in Collision otherwise it fails.

image

So, the backslashes aren't escaped due to the double process usage. Meaning it thinks that the namespace characters are escaped. 🤔

@klipitkas
Copy link

Is someone planning a fix for this issue? or I can check it out and try to fix it.

@zhi8617
Copy link

zhi8617 commented Aug 28, 2021

Same situation, anyone have any ideas?

@Thinkro
Copy link

Thinkro commented Sep 7, 2022

Anyone solved this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants