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
發布數64
最新版本名稱v2.3.9 (發布於 2020-08-19 20:29:42)
第一版名稱v0.1.0 (發布於 2012-02-24 17:26:04)
創建於2011-06-23 20:53:57
推送於2022-06-08 00:30:12
最后一次提交2020-08-19 20:29:42
星數8.8k
關注者數126
派生數548
提交數527
已啟用問題?
問題數389
打開的問題數95
拉請求數48
打開的拉請求數27
關閉的拉請求數66
已啟用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:

去到頂部