If someone is running PHPUnit in a docker container and wonders why they can't filter by namespaces....

I finally managed it with

phpunit --filter 'My\\\\\\\Namespace'

Why 7? I have no idea! As long as it works! BTW: The quotes are important! Without them it'll be - - you guessed it correctly - 14 backslashes... 🙈

#php #phpunit

@heiglandreas I normally have a "make shell" target to have a live shell inside the container to save me from all those headaches 😂
@alessandrolai @heiglandreas I just specify "phpunit tests/Unit/MyNamespace --filter MyTest" for that sort of thing and avoid backslashes 😅 bonus is that it stays in my shell history
@dantleech @alessandrolai Drawback is that it only uses tests from that folder. And yes: Don't ask! 🙈

@dantleech @heiglandreas that also has the advantage of shell autocomplete! I normally do

v/b/pu<tab> t/u/n<tab>

...thanks to @ohmyzsh

@alessandrolai Oh! That sounds great! Needt to test.... Thanka!

/cc @dantleech @ohmyzsh

@alessandrolai @heiglandreas @ohmyzsh fwiw I also do `MyTest<up> ` thanks to the substring history search plugin - best plugin ever!