pestphp / pest-plugin-watch

The Pest Plugin Watch
https://pestphp.com
MIT License
17 stars 10 forks source link

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

Open matevisky opened 3 years ago

matevisky commented 3 years ago

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 commented 3 years ago

Please create an issue on the collision repo.

nunomaduro commented 3 years ago

Nevermind, cc @caneco

owenvoke commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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

zhi8617 commented 3 years ago

Same situation, anyone have any ideas?

Thinkro commented 1 year ago

Anyone solved this?