macOS
brew install phpunitlocal Homebrew formula metadata
安装
brew install phpunitlocal Homebrew formula metadata
sudo apk add phpunitAlpine Linux edge package indexes · phpunit · 来源: dl-cdn.alpinelinux.org
sudo apt install phpunitDebian stable package indexes · phpunit · 来源: deb.debian.org
nix profile install nixpkgs#phpunitnixpkgs package indexes · pkgs/by-name/ph/phpunit/package.nix · 来源: api.github.com
sudo dnf install phpunit13Fedora Rawhide package metadata · phpunit13 · 来源: dl.fedoraproject.org
概览
Programmer-oriented testing framework for PHP
历史
PHPUnit is Sebastian Bergmann's programmer-oriented testing framework and command-line test runner for PHP.
Sebastian Bergmann created PHPUnit in 2001. It was initially developed in PHP's CVS and released through PEAR, moved to the project's Subversion server in 2006, and moved to GitHub in 2009. PEAR ceased being the preferred installation mechanism as Composer and signed PHAR releases became the normal choices.
PHPUnit became the standard xUnit-style testing foundation for PHP projects and is described by its maintainer as the ecosystem's most widely used testing framework. Its distribution shifted from PEAR toward project-local Composer dependencies and signed PHAR archives as PHP packaging conventions changed.
Developers write test case classes and assertions, organize them into suites, and invoke a project-local `phpunit` command. XML configuration defines suites and runner behavior; Composer or a signed PHAR is preferred over a global operating-system package.
PHPUnit tracks the evolution of PHP packaging itself: development began in PHP's CVS, releases moved through PEAR and a project-hosted Subversion repository, and source development later moved to GitHub. Modern users must deliberately match PHPUnit and PHP generations, which makes project-local dependency management especially important.
安全态势
没有找到 phpunit 的匹配本地密钥处理 manifest。软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
./phpunit.xml./phpunit.xml.dist可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
phpunit | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:phpunit |
|---|---|
| 版本 | 13.4.6 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/phpunit |
| 主页 | https://phpunit.de |
| 上游文档 | https://phpunit.de |
| 许可证 | BSD-3-Clause |
| 源码归档 | https://phar.phpunit.de/phpunit-13.4.6.phar |
| 最后更新 | 2026-11-02T08:46:11Z |
| Pulse | updated |
| Bottle | 可用 (于 all) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | phpunit |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
phpunit 11.5.19-1+deb13u1
Unit testing suite for PHP
sudo apt install phpunitphpunit
nix profile install nixpkgs#phpunitphpunit 9.6.17-1
Unit testing suite for PHP
sudo apt install phpunitphpunit 11.5.55-r0
The PHP Unit Testing framework
sudo apk add phpunitphpunit13 13.3.2-1.fc46
The PHP Unit Testing framework version 13
https://github.com/sebastianbergmann/phpunit
sudo dnf install phpunit13来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.