"Create new PHP Test" wrong settings
In my project, when I right click on a php class and I do New > PHP Test > PHP Unit Test, values like the test class directory and the namespace are wrong, and the Member table is very thin and I see only one method at time. There is any way to manually map the folders so the right fodlers and namespaces are suggested and there is a way to have the member table bigger?
请先登录再写评论。
These values are taken from the source and test roots that have PSR-0/4 roots specified.
You can either configure them manually or add proper namespace mappings to your
composer.json(autoloadstands for source roots andautoload-devfor test roots).I've recorded a short screencast to showcase this.
Expand the windows vertically and click OK, next time you invoke the window, it should auto-expand.
Thanks a lot for your reply. Unfortunately your solution doesn't work for me. The structure of the application is like a suite of apps, but since they are all thigh together they have to be on the same project, but for maintenance purpose they have a test folder each, so the structure is like:
so the class in
should have a suggested test path in
instead I get this
Works fine for me, please check the screencast: https://drive.google.com/file/d/1pZYTgW4bQFIFuU0LCkvzeLXgn-ybI65E