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.
在 Symfony2 中,每个包都提供一个名为 Tests 的文件夹。任何机构都可以解释如何处理这些案例。我尝试了以下链接,但没有成功。
测试和 运行 Symfony2 测试
phpunit -c app/在 Symfony 安装的根目录下运行将运行 src/ 目录中的 Bundles 的所有测试。
phpunit -c app/
如果您想运行特定 Bundle 的测试,则可以从您的应用程序根目录使用
phpunit -c app/ path/to/Tests