{"id":13398996,"url":"https://github.com/sebastianbergmann/phpunit","last_synced_at":"2026-04-16T06:09:18.936Z","repository":{"id":767146,"uuid":"448045","full_name":"sebastianbergmann/phpunit","owner":"sebastianbergmann","description":"The PHP Unit Testing framework.","archived":false,"fork":false,"pushed_at":"2026-04-03T15:36:32.000Z","size":222423,"stargazers_count":20011,"open_issues_count":116,"forks_count":2235,"subscribers_count":303,"default_branch":"main","last_synced_at":"2026-04-03T15:49:55.887Z","etag":null,"topics":["php","phpunit","testing-tools"],"latest_commit_sha":null,"homepage":"https://phpunit.de/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"evrone/quiet_assets","license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sebastianbergmann.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog-13.2.md","contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"sebastianbergmann","liberapay":"sebastianbergmann","thanks_dev":"u/gh/sebastianbergmann","tidelift":"packagist/phpunit/phpunit","custom":"https://phpunit.de/sponsors.html"}},"created_at":"2009-12-24T13:16:23.000Z","updated_at":"2026-04-03T15:36:37.000Z","dependencies_parsed_at":"2026-04-08T05:01:06.496Z","dependency_job_id":null,"html_url":"https://github.com/sebastianbergmann/phpunit","commit_stats":{"total_commits":15626,"total_committers":559,"mean_commits":"27.953488372093023","dds":"0.22814539869448358","last_synced_commit":"d81cfde3082807ab0db366c8424cb5bbbfcdc03b"},"previous_names":[],"tags_count":1004,"template":false,"template_full_name":null,"purl":"pkg:github/sebastianbergmann/phpunit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebastianbergmann%2Fphpunit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebastianbergmann%2Fphpunit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebastianbergmann%2Fphpunit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebastianbergmann%2Fphpunit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sebastianbergmann","download_url":"https://codeload.github.com/sebastianbergmann/phpunit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebastianbergmann%2Fphpunit/sbom","scorecard":{"id":560299,"data":{"date":"2025-08-11","repo":{"name":"github.com/sebastianbergmann/phpunit","commit":"03cd874a1d6a62a53b069b5a07723cc5a9e1cfd0"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":5.2,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 1/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":10,"reason":"30 commit(s) and 21 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Security-Policy","score":10,"reason":"security policy file detected","details":["Info: security policy file detected: SECURITY.md:1","Info: Found linked content: SECURITY.md:1","Info: Found disclosure, vulnerability, and/or timelines in security policy: SECURITY.md:1","Info: Found text in security policy: SECURITY.md:1"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: BSD 3-Clause \"New\" or \"Revised\" License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 1 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'","Warn: branch protection not enabled for branch '12.3'","Warn: branch protection not enabled for branch '11.5'","Warn: branch protection not enabled for branch '10.5'","Warn: branch protection not enabled for branch '9.6'","Warn: branch protection not enabled for branch '8.5'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-20T13:28:37.302Z","repository_id":767146,"created_at":"2025-08-20T13:28:37.302Z","updated_at":"2025-08-20T13:28:37.302Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31540826,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T16:28:08.000Z","status":"online","status_checked_at":"2026-04-08T02:00:06.127Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["php","phpunit","testing-tools"],"created_at":"2024-07-30T19:00:33.314Z","updated_at":"2026-04-08T05:01:14.239Z","avatar_url":"https://github.com/sebastianbergmann.png","language":"PHP","readme":"[![PHPUnit](.github/img/phpunit.svg)](https://phpunit.de/?ref=github)\n\n[![CI Status](https://github.com/sebastianbergmann/phpunit/workflows/CI/badge.svg)](https://github.com/sebastianbergmann/phpunit/actions)\n[![codecov](https://codecov.io/gh/sebastianbergmann/phpunit/branch/main/graph/badge.svg?token=0yzBUK8Wri)](https://codecov.io/gh/sebastianbergmann/phpunit)\n[![Latest Stable Version](https://poser.pugx.org/phpunit/phpunit/v)](https://packagist.org/packages/phpunit/phpunit)\n[![Total Downloads](https://poser.pugx.org/phpunit/phpunit/downloads)](https://packagist.org/packages/phpunit/phpunit/stats)\n[![Monthly Downloads](https://poser.pugx.org/phpunit/phpunit/d/monthly)](https://packagist.org/packages/phpunit/phpunit/stats)\n[![Daily Downloads](https://poser.pugx.org/phpunit/phpunit/d/daily)](https://packagist.org/packages/phpunit/phpunit/stats)\n\n# PHPUnit\n\nPHPUnit is a programmer-oriented testing framework for PHP.\nIt is an instance of the xUnit architecture for unit testing frameworks.\n\n## Installation\n\nWe distribute a [PHP Archive (PHAR)](https://php.net/phar) that has all required dependencies of PHPUnit bundled in a single file:\n\n```bash\n$ wget https://phar.phpunit.de/phpunit-X.Y.phar\n\n$ php phpunit-X.Y.phar --version\n```\n\nPlease replace `X.Y` with the version of PHPUnit you are interested in.\n\nAlternatively, you may use [Composer](https://getcomposer.org/) to download and install PHPUnit as well as its dependencies.\nPlease refer to the [documentation](https://phpunit.de/documentation.html?ref=github) for details on how to install PHPUnit.\n\n## Contribute\n\nPlease refer to [CONTRIBUTING.md](https://github.com/sebastianbergmann/phpunit/blob/main/.github/CONTRIBUTING.md) for information on how to contribute to PHPUnit and its related projects.\n\nA big \"Thank you!\" to everyone who has contributed to PHPUnit!\nYou can find a detailed list of contributors on every PHPUnit related package on GitHub.\n\nHere is a list of all components that are primarily developed and maintained by [Sebastian Bergmann](https://sebastian-bergmann.de/open-source.html?ref=github):\n\n* [phpunit/phpunit](https://github.com/sebastianbergmann/phpunit)\n* [phpunit/php-code-coverage](https://github.com/sebastianbergmann/php-code-coverage)\n* [phpunit/php-file-iterator](https://github.com/sebastianbergmann/php-file-iterator)\n* [phpunit/php-invoker](https://github.com/sebastianbergmann/php-invoker)\n* [phpunit/php-text-template](https://github.com/sebastianbergmann/php-text-template)\n* [phpunit/php-timer](https://github.com/sebastianbergmann/php-timer)\n* [sebastian/cli-parser](https://github.com/sebastianbergmann/cli-parser)\n* [sebastian/comparator](https://github.com/sebastianbergmann/comparator)\n* [sebastian/complexity](https://github.com/sebastianbergmann/complexity)\n* [sebastian/diff](https://github.com/sebastianbergmann/diff)\n* [sebastian/environment](https://github.com/sebastianbergmann/environment)\n* [sebastian/exporter](https://github.com/sebastianbergmann/exporter)\n* [sebastian/git-state](https://github.com/sebastianbergmann/git-state)\n* [sebastian/global-state](https://github.com/sebastianbergmann/global-state)\n* [sebastian/lines-of-code](https://github.com/sebastianbergmann/lines-of-code)\n* [sebastian/object-enumerator](https://github.com/sebastianbergmann/object-enumerator)\n* [sebastian/object-reflector](https://github.com/sebastianbergmann/object-reflector)\n* [sebastian/recursion-context](https://github.com/sebastianbergmann/recursion-context)\n* [sebastian/type](https://github.com/sebastianbergmann/type)\n* [sebastian/version](https://github.com/sebastianbergmann/version)\n\nA very special thanks to everyone who has contributed to the [PHPUnit Manual](https://github.com/sebastianbergmann/phpunit-documentation-english).\n\nIn addition to the components listed above, PHPUnit depends on the components listed below:\n\n* [myclabs/deep-copy](https://github.com/myclabs/DeepCopy)\n* [nikic/php-parser](https://github.com/nikic/php-parser)\n* [phar-io/manifest](https://github.com/phar-io/manifest)\n* [phar-io/version](https://github.com/phar-io/version)\n* [staabm/side-effects-detector](https://github.com/staabm/side-effects-detector)\n* [theseer/tokenizer](https://github.com/theseer/tokenizer)\n\nThese tools are used to develop PHPUnit:\n\n* [Composer](https://getcomposer.org/)\n* [Phive](https://phar.io/)\n* [PHP Autoload Builder](https://github.com/theseer/Autoload/)\n* [PHP-CS-Fixer](https://cs.symfony.com/)\n* [PHP-Scoper](https://github.com/humbug/php-scoper)\n* [PHPStan](https://phpstan.org/)\n\n## Sponsors\n\nIt has taken [Sebastian Bergmann](https://sebastian-bergmann.de/open-source.html?ref=github) thousands of hours to develop, test, and support PHPUnit.\n[**You can sponsor his Open Source work through GitHub Sponsors**](https://github.com/sponsors/sebastianbergmann), for example.\n\nThese businesses support Sebastian Bergmann's work on PHPUnit:\n\n\u003ctable\u003e\n    \u003ctbody\u003e\n        \u003ctr\u003e\n            \u003ctd style=\"width: 30%; vertical-align: middle;\"\u003e\u003ca href=\"https://www.bubbleshooter.net/\"\u003e\u003cimg alt=\"Bubble Shooter\" src=\".github/img/bubble-shooter.png\" style=\"width: 200px;\"/\u003e\u003c/a\u003e\u003c/td\u003e\n            \u003ctd style=\"width: 30%; vertical-align: middle;\"\u003e\u003ca href=\"https://www.in2it.be/phpunit-supporter/\"\u003e\u003cimg alt=\"in2it vof\" src=\".github/img/in2it.svg\" style=\"width: 200px;\"/\u003e\u003c/a\u003e\u003c/td\u003e\n            \u003ctd style=\"width: 30%; vertical-align: middle;\"\u003e\u003ca href=\"https://l.rw.rw/php_unit\"\u003e\u003cimg alt=\"Mailtrap\" src=\".github/img/mailtrap.svg\" style=\"width: 200px;\"/\u003e\u003c/a\u003e\u003c/td\u003e\n        \u003c/tr\u003e\n        \u003ctr\u003e\n            \u003ctd style=\"width: 30%; vertical-align: middle;\"\u003e\u003ca href=\"https://testmo.com/\"\u003e\u003cimg alt=\"Testmo GmbH\" src=\".github/img/testmo.svg\" style=\"width: 200px;\"/\u003e\u003c/a\u003e\u003c/td\u003e\n            \u003ctd style=\"width: 30%; vertical-align: middle;\"\u003e\u003ca href=\"https://www.testmuai.com/?utm_medium=sponsor\u0026utm_source=phpunit\"\u003e\u003cimg alt=\"TestMu AI\" src=\".github/img/testmuai.svg\" style=\"width: 200px;\"/\u003e\u003c/a\u003e\u003c/td\u003e\n            \u003ctd style=\"width: 30%; vertical-align: middle;\"\u003e\u003ca href=\"https://tideways.com/\"\u003e\u003cimg alt=\"Tideways GmbH\" src=\".github/img/tideways.svg\" style=\"width: 200px;\"/\u003e\u003c/a\u003e\u003c/td\u003e\n        \u003c/tr\u003e\n        \u003ctr\u003e\n            \u003ctd style=\"width: 30%; vertical-align: middle;\"\u003e\u003ca href=\"https://typo3.com/\"\u003e\u003cimg alt=\"TYPO3 GmbH\" src=\".github/img/typo3.svg\" style=\"width: 200px;\"/\u003e\u003c/a\u003e\u003c/td\u003e\n            \u003ctd style=\"width: 30%; vertical-align: middle;\"\u003e\u003ca href=\"https://vema-eg.de/\"\u003e\u003cimg alt=\"VEMA Versicherungsmakler Genossenschaft eG\" src=\".github/img/vema.svg\" style=\"width: 200px;\"/\u003e\u003c/a\u003e\u003c/td\u003e\n        \u003c/tr\u003e\n    \u003c/tbody\u003e\n\u003c/table\u003e\n\nWould you like to see your logo here as well as on the [PHPUnit website](https://phpunit.de/sponsors.html?ref=github)?\nContact Sebastian Bergmann at [sponsoring@phpunit.de](mailto:sponsoring@phpunit.de) to learn more about how you can support his work on PHPUnit.\n\nWhether you are a CEO, CFO, CTO, or a developer: your company surely depends on Open Source software.\n[It is time to pay your share](https://opensourcepledge.com/) and support maintainers like [Sebastian Bergmann](https://phpunit.de/sponsoring.html).\n","funding_links":["https://github.com/sponsors/sebastianbergmann","https://liberapay.com/sebastianbergmann","https://thanks.dev/u/gh/sebastianbergmann","https://tidelift.com/funding/github/packagist/phpunit/phpunit","https://phpunit.de/sponsors.html"],"categories":["PHP","Table of Contents","Testing","测试","测试 Testing","后端开发框架及项目","目录","测试( Testing )","类库","Dev Tools","Developments"],"sub_categories":["Testing","PHP开发","测试 Testing","测试框架","Libraries","PHP Dev Tools","Framework \u0026 Libraries"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebastianbergmann%2Fphpunit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsebastianbergmann%2Fphpunit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebastianbergmann%2Fphpunit/lists"}