PHPUnit

PHPUnit是PHP的面向程序员的测试框架。它是单元测试框架的xUnit体系结构的一个实例。(PHPUnit is a programmer-oriented testing framework for PHP. It is an instance of the xUnit architecture for unit testing frameworks.)

Github星跟踪图

PHPUnit是PHP的面向程序员的测试框架。它是单元测试框架的xUnit体系结构的一个实例。

要求:

PHPUnit 4.8 was supported on PHP 5.3 – 5.6;PHPUnit 5.7 需要 PHP 5.6;PHPUnit 6.1需要PHP 7;强烈建议使用最新版本的PHP。

PHPUnit需要 domjson 扩展,通常默认情况下启用。

PHPUnit还需要 pcrereflectionspl 扩展。 默认情况下启用这些标准扩展,并且除非修改 PHP 的构建系统和 C 源代码,否则无法禁用它们。

代码覆盖率报告功能需要 Xdebug(2.5.0或更高版本)和 tokenizer 扩展。 生成XML报告需要 xmlwriter 扩展。

主要指标

概览
名称与所有者olivernn/lunr.js
主编程语言JavaScript
编程语言PHP (语言数: 5)
平台
许可证MIT License
所有者活动
创建于2011-06-23 20:53:57
推送于2024-07-31 11:57:09
最后一次提交2020-08-19 20:29:42
发布数64
最新版本名称v2.3.9 (发布于 2020-08-19 20:29:42)
第一版名称v0.1.0 (发布于 2012-02-24 17:26:04)
用户参与
星数9.1k
关注者数121
派生数557
提交数527
已启用问题?
问题数399
打开的问题数103
拉请求数48
打开的拉请求数27
关闭的拉请求数70
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?

PHPUnit

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

Latest Stable Version
Minimum PHP Version
Build Status
CI Status
Type Coverage

Installation

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

$ wget https://phar.phpunit.de/phpunit-nightly.phar

$ php phpunit-nightly.phar --version

Alternatively, you may use Composer to download and install PHPUnit as well as its dependencies. Please refer to the "Getting Started" guide 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.

List of Contributors

Thanks to everyone who has contributed to PHPUnit! You can find a detailed list of contributors on every PHPUnit related package on GitHub. This list shows only the major components:

A very special thanks to everyone who has contributed to the documentation and helps maintain the translations: