In The PhpStorm you can search to text in all files in the whole project -- just click Schift+F. And you can set the filename mask there, like *.php
The test/phpunit
folder is located in the project as well and is indexed for search. This is good and useful.
But sometimes you need to search in source code only, not in the test files.
It means that you should not disable those files from search index -- you need them.
PHPStorm exclude files by mask from indexing
WebStorm/PhpStorm exclude file from search everywhere
You just need some ability to filter them out sometimes.
I supposed to use the mask like "*[~^test]*.php" but it seems is not supported.
Any idea?