1、打开phpstorm设置,找到 languages & frameworks => php2、在include path 里面,添加你phpunit的位置
项目最好通过composer安装,不然phpstorm不能自动引入一些拓展的东西!!!