pestphp / pest-plugin-watch

The Pest Plugin Watch

Home Page:https://pestphp.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

matevisky opened this issue · comments

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

Please create an issue on the collision repo.

Nevermind, cc @caneco

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.

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. 🤔

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

Same situation, anyone have any ideas?

commented

Anyone solved this?