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.

1
4 comments

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: 

0
Avatar
Permanently deleted user

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.

0

Is there an option for you to update to 2017.3.6?

0
Avatar
Permanently deleted user

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!

1

Please sign in to leave a comment.