Automatic PHPUnit test class name generation is not working
Is there a setting that would prevent PHPUnit test classes from being named automatically after entering the fully-qualified name of the class to test? This used to work for me and now it doesn't seem to be working any longer. When I enter a fully-qualified class to test, the Test Class Name field still just has "Test" as a value.
Please sign in to leave a comment.
Do you have a folder containing your tests marked as "Tests source root" in Settings > Directories? I've tried that on 2018.1 EAP and it worked fine:
I do. I'm on 2017.3.1, so I guess it's possible that there's a bug in that version and I just haven't noticed it until now. I haven't made any changes to my settings in a while, so I can't imagine it'd be anything in there. I've even tried invalidating my caches and restarting, but that didn't help either.
Is there an option for you to update to 2017.3.6?
I didn't even realize there was a newer version. Usually PHPStorm alerts me when there's an update. Anyhow, I updated to 2017.3.6 and that seems to have done the trick. Thanks!