problem
Recently, I encountered a problem when using Lumen to do unit testing, that is, I opened multiple projects (user side and management side) with PHPStorm. At this time, when the Test Sources Root was set, it would be found that the namespace PHPStorm of the test case could not be recognized. And if it is directly a project, there is no such problem.
solution
After studying for a long time, I finally found a solution that can realize PHPStorm's recognition of these directories under multiple projects.
- Set as Test Sources Root first
- Edit on the settings page to modify the namespace prefix.
Copyright Notice
Please indicate the author and source of the article for reprinting
Author: Mr. X
https://segmentfault.com/a/1190000040581919
feel good, please help to collect and like~
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。