phpunit README

The project's README from github.com/sebastianbergmann/phpunit. As one markdown file: README.md.

PHPUnit

CI Status codecov Latest Stable Version Total Downloads Monthly Downloads Daily Downloads

PHPUnit

PHPUnit is a programmer-oriented testing framework for PHP. It is an instance of the xUnit architecture for unit testing frameworks.

Installation

We distribute a PHP Archive (PHAR) that has all required dependencies of PHPUnit bundled in a single file:

$ wget https://phar.phpunit.de/phpunit-X.Y.phar

$ php phpunit-X.Y.phar --version

Please replace X.Y with the version of PHPUnit you are interested in.

Alternatively, you may use Composer to download and install PHPUnit as well as its dependencies. Please refer to the documentation for details on how to install PHPUnit.

Contribute

Please refer to CONTRIBUTING.md for information on how to contribute to PHPUnit and its related projects.

A big "Thank you!" to everyone who has contributed to PHPUnit! You can find a detailed list of contributors on every PHPUnit related package on GitHub.

Here is a list of all components that are primarily developed and maintained by Sebastian Bergmann:

A very special thanks to everyone who has contributed to the PHPUnit Manual.

In addition to the components listed above, PHPUnit depends on the components listed below:

These tools are used to develop PHPUnit:

Sponsors

It has taken Sebastian Bergmann thousands of hours to develop, test, and support PHPUnit. You can sponsor his Open Source work through GitHub Sponsors, for example.

These businesses support Sebastian Bergmann's work on PHPUnit:

Bubble Shooter in2it vof Mailtrap
Testmo GmbH TestMu AI Tideways GmbH
TYPO3 GmbH VEMA Versicherungsmakler Genossenschaft eG

Would you like to see your logo here as well as on the PHPUnit website? Contact Sebastian Bergmann at [email protected] to learn more about how you can support his work on PHPUnit.

Whether you are a CEO, CFO, CTO, or a developer: your company surely depends on Open Source software. It is time to pay your share and support maintainers like Sebastian Bergmann.

phpunit (sebastianbergmann/phpunit)

Searching Database…

20.1K ·GitHub
这是什么?PHPUnit 是一个面向程序员的 PHP 测试框架,基于 xUnit 架构构建——这是单元测试框架的经典模式。
这是要添加到我项目里的库,还是要单独运行的工具?它是一个框架而不是应用:你以 PHP 类的形式在自己的代码里编写测试,PHPUnit 从命令行运行这些测试并报告结果。它没有图形界面。
除了 PHP,我的电脑还需要装别的东西吗?不需要。发布的 PHAR 文件把 PHPUnit 所需的全部依赖打包在一个文件里,不用再手动安装任何额外的东西。
在我的操作系统上能运行吗?它是纯 PHP 写的,所以 PHP 能跑的地方它都能跑——Linux、macOS 和 Windows 都可以。README 中没有对操作系统做任何限制。
PHPUnit 是由一个包还是多个包组成的?由很多个组成。这个项目被拆分成一系列小组件,由作者本人维护——比如 php-file-iterator、php-invoker、sebastian/diff、sebastian/exporter、sebastian/type 等——此外还依赖 nikic/php-parser 和 theseer/tokenizer 这类第三方包。
它能告诉我测试实际覆盖了多少代码吗?可以。代码覆盖统计功能是项目里一个独立的组件,叫 php-code-coverage,和 PHPUnit 本身一起维护。
它是免费的吗?开发经费从哪来?它是基于 BSD-3-Clause 许可证的开源免费软件。Sebastian Bergmann 投入的数千小时工作靠 GitHub Sponsors 赞助支持,企业也可以资助项目,让自己的标志出现在 README 上。
这个项目成熟吗?非常成熟。代码仓库最早可以追溯到 2009 年 12 月,在 GitHub 上有超过 20,000 颗星,其 CI 每晚运行构建,发布也实现了自动化。
What are similar projects?mockery, testify, pest, mockito, ava, mocha, pytest, googletest
Size
379.8 MB
Stars
20.1K
Age
16y
Commits · 90 Days