Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用 Laravel 运行 phpspec,遵循此视频
我用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 描述 Acme\Shipping