简体   繁体   English

使用Symfony 4进行单元和功能测试的最佳文件夹结构是什么?

[英]What is the best folder structure for unit and functional tests using Symfony 4?

使用Symfony 4存储单元测试和功能测试的最佳文件夹结构是什么?

According to official Symfony page https://symfony.com/download , they provide a Symfony Demo application with best practices. 根据Symfony官方页面https://symfony.com/download的介绍 ,他们提供了具有最佳实践的Symfony Demo应用程序。

Description: Symfony Demo application, The best Symfony learning resource and the reference to develop applications following the official best practices. 说明: Symfony演示应用程序,最佳Symfony学习资源以及遵循官方最佳实践开发应用程序的参考。

Symfony - Official Repository: https://github.com/symfony/demo Symfony-官方存储库: https : //github.com/symfony/demo

If you check the repository, tests are located in /demo/tests/ 如果您检查存储库,则测试位于/demo/tests/

/demo/tests/Controller/DefaultControllerTest.php

/demo/tests/Controller/BlogControllerTest.php

/demo/tests/Command/AddUserCommandTest.php

/demo/tests/Utils/ValidatorTest.php

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM