8

PHPStorm多项目下Test Sources Root设置

 3 years ago
source link: https://segmentfault.com/a/1190000040581919
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

PHPStorm多项目下Test Sources Root设置

最近用Lumen来做单元测试的时候遇到一个问题,就是用PHPStorm开了多个项目(用户侧和管理侧),这时候设置了Test Sources Root,会发现测试用例的命名空间PHPStorm无法识别。而如果直接是一个项目就没有这个问题。

image.png

image.png

image.png

研究了好久,终于发现解决方案,可以实现多项目下PHPStorm对这些目录的识别。

  • 先设置为Test Sources Root
  • 在设置页面进行编辑,修改命名空间prefix。
    image.png

    image.png

    image.png

转载请注明作者和文章出处
作者: X先生
https://segmentfault.com/a/11...

觉得不错的话请帮忙收藏点赞~


Recommend

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK