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 stars Tracking Chart

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 扩展。

Overview

Name With Ownerolivernn/lunr.js
Primary LanguageJavaScript
Program languagePHP (Language Count: 5)
Platform
License:MIT License
Release Count64
Last Release Namev2.3.9 (Posted on 2020-08-19 20:29:42)
First Release Namev0.1.0 (Posted on 2012-02-24 17:26:04)
Created At2011-06-23 20:53:57
Pushed At2022-06-08 00:30:12
Last Commit At2020-08-19 20:29:42
Stargazers Count8.8k
Watchers Count126
Fork Count548
Commits Count527
Has Issues Enabled
Issues Count389
Issue Open Count95
Pull Requests Count48
Pull Requests Open Count27
Pull Requests Close Count66
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private

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:

To the top