我正在尝试让phpspec与Laravel一起运行,下面是这个视频
我可以用composer安装它,并添加一个别名,但当我运行时:
phpspec describe Shipping'
我得到一个错误:
[RuntimeException]
Can not find appropriate suite scope for class `Shipping`.
检查composer.json 中的命名空间
"psr-4": {
"Acme\":"app/Acme"
}
当然还有
composer dumpautoload
和
在phpspec.yml文件中
suites:
acme_suites:
namespace: Acme
phpspec-descripte Acme\运输