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! 🙈