In Php Storm, you can either mark files as "text" to exclude them from analysis, or exclude the test folder from the project entirely. It would be great if you had more control of the scope of analysis in Php Storm, but that's an issue that needs to be fixed in Storm and not in our codebase :-)