Skip to content
This repository was archived by the owner on Apr 12, 2018. It is now read-only.

建议在http://www.phpunit.cn/manual/current/zh_cn/textui.html 此页面上加一些样例,大多数人关心怎么样运行所有测试。 #473

Closed
zhongmengyuan opened this issue Oct 25, 2017 · 4 comments

Comments

@zhongmengyuan
Copy link

Most people care about the Simple example which people always use 。I think you should provide a demo
project like “HelloWorld” , so they can test it as soon as they want. and if they want to know the detail ,then they go .

@reatang
Copy link

reatang commented Nov 3, 2017

请查看:https://phpunit.de/manual/6.3/zh_cn/appendixes.configuration.html
在你项目的phpunit.xml文件中配置测试套件。

see: https://phpunit.de/manual/6.3/zh_cn/appendixes.configuration.html
edit phpunit.xml configuration [Test Suites] in your project.

@WynnChen
Copy link
Collaborator

我的感受:这是“手册(manual)”而非“入门教程(tutorial)”,内容组织相对偏重于分门别类同时照顾完整性,而非侧重依照学习/使用过程来循序渐进的介绍如何使用。完整看完一遍之后基本上该有的信息都差不多有,但是需要自行按照目前的需求从各章节去抽取相关内容。
对于入门而言,这个文档略显晦涩,但对入门之后使用过程中查询信息的用途来说是比较高效的。

@zhongmengyuan
Copy link
Author

zhongmengyuan commented Nov 26, 2017

我倒是觉得“手册”和“入门教程”这两者的界限没有必要区分的那么开。正常的习惯应该是,先满足基本需求,需要进一步深入学习使用的话,再进行全量深入学习。如果文档太过专业,无疑会提高学习的门槛。对于php单元测试,大部分人可能只需要用到其中的一小部分:怎么写?怎么执行?。手册既然服务于使用者,就应该要有侧重点,或者更简单,提供一个写好的sample地址(别人打开一看就知道了)
@WynnChen

@sebastianbergmann
Copy link
Owner

Dear contributor,

thanks to the hard work by @belanur, @starikovm, @trueromio, and others, the changes outlined in #471 (comment) have been implemented.

This repository, https://github.com/sebastianbergmann/phpunit-documentation, is now archived and read-only. The documentation for PHPUnit version prior to PHPUnit 7.0 will no longer be changed or updated. It is still hosted at

  • Multiple HTML files: https://phpunit.de/manual/6.5/en/index.html
  • Multiple HTML files (in a .tar.bz2 archive): https://phpunit.de/manual/current/en/download.tar.bz2
  • Single HTML file: https://phpunit.de/manual/current/en/phpunit-book.html
  • PDF: https://phpunit.de/manual/current/en/phpunit-book.pdf
  • ePub: https://phpunit.de/manual/current/en/phpunit-book.epub

Simply replace 6.5 with the version number you are looking for. Simply replace en with fr, pt_br, ja, or zh_cn to access the French, Brazilian Portuguese, Japanese, or Simplified Chinese translation, respectively.

Starting with the documentation for PHPUnit 7.0, the PHPUnit documentation is hosted at https://phpunit.readthedocs.io/.

I am sorry that I have to close this issue here as GitHub does not support moving issues from one project to another. Please open a new ticket for this issue in one of the new issue trackers (see above).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants