# PHPUnit vs unittest

| Attribute | PHPUnit | unittest |
|---|---|---|
| **Vioscale score** | 62 (33% (low)) | 65.8 (36% (low)) |
| activity.commits_last_30d | 100 | 100 |
| adoption.dependent_repos | 777,462 | 111 |
| adoption.github_stars | 20,045 | 74,928 |
| deployment.options | `{"self_hosted":true}` | - |
| description.long | PHPUnit helps developers verify their PHP code through automated unit testing. It provides a framework for writing, organizing, and running tests. | Automates unit test execution with support for setup and teardown code, test organization, and independent test management. Includes test discovery and can be integrated with continuous integration systems. |
| features.capabilities | `{"coverage":true,"languages":"PHP","test_types":"unit"}` | `{"mocking":true,"languages":"Python","assertions":true,"test_types":"unit","ci_integration":true}` |
| language.primary | PHP | Python |
| license.spdx | BSD-3-Clause | - |
| market.availability | `{"primaryMarkets":["DE"],"availabilityScope":"global","availableCountries":[],"notAvailableCountries":[]}` | - |
| platform.support | `{"cli":true}` | `{"cli":true}` |
| pricing | `{"type":"open_source","sourceUrl":"https://phpunit.de","retrievedAt":"2026-08-13T23:02:05.270Z"}` | `{"type":"open_source","freeTier":true,"sourceUrl":"https://docs.python.org/3/library/unittest.html","retrievedAt":"2026-08-03T20:57:19.807Z"}` |
| pricing.free_tier | - | yes |
| pricing.model | open_source | commercial |
| pricing.price_level | free | free |
| pricing.transparent | - | yes |
| release.history | `[{"url":"https://github.com/sebastianbergmann/phpunit/releases/tag/13.3.1","date":"2026-08-13T13:16:00Z","type":"stable","version":"13.3.1"},{"url":"https://github.com/sebastianbergmann/phpunit/releases/tag/9.6.36","date":"2026-08-11T06:30:51Z","type":"stable","version":"9.6.36"},{"url":"https://github.com/sebastianbergmann/phpunit/releases/tag/8.5.54","date":"2026-08-11T06:07:55Z","type":"stable","version":"8.5.54"},{"url":"https://github.com/sebastianbergmann/phpunit/releases/tag/13.3.0","date":"2026-08-07T07:38:42Z","type":"stable","version":"13.3.0"},{"url":"https://github.com/sebastianbergmann/phpunit/releases/tag/13.2.6","date":"2026-07-28T14:01:46Z","type":"stable","version":"13.2.6"},{"url":"https://github.com/sebastianbergmann/phpunit/releases/tag/12.5.33","date":"2026-07-28T14:00:09Z","type":"stable","version":"12.5.33"},{"url":"https://github.com/sebastianbergmann/phpunit/releases/tag/13.2.5","date":"2026-07-25T07:01:26Z","type":"stable","version":"13.2.5"},{"url":"https://github.com/sebastianbergmann/phpunit/releases/tag/12.5.32","date":"2026-07-25T06:58:57Z","type":"stable","version":"12.5.32"},{"url":"https://github.com/sebastianbergmann/phpunit/releases/tag/13.2.4","date":"2026-07-08T08:38:10Z","type":"stable","version":"13.2.4"},{"url":"https://github.com/sebastianbergmann/phpunit/releases/tag/13.2.3","date":"2026-07-06T14:59:31Z","type":"stable","version":"13.2.3"},{"url":"https://github.com/sebastianbergmann/phpunit/releases/tag/12.5.31","date":"2026-07-06T14:56:41Z","type":"stable","version":"12.5.31"},{"url":"https://github.com/sebastianbergmann/phpunit/releases/tag/11.5.56","date":"2026-07-06T14:54:46Z","type":"stable","version":"11.5.56"},{"url":"https://github.com/sebastianbergmann/phpunit/releases/tag/10.5.64","date":"2026-07-06T14:52:17Z","type":"stable","version":"10.5.64"},{"url":"https://github.com/sebastianbergmann/phpunit/releases/tag/9.6.35","date":"2026-07-06T14:50:10Z","type":"stable","version":"9.6.35"},{"url":"https://github.com/sebastianbergmann/phpunit/releases/tag/8.5.53","date":"2026-07-06T14:47:15Z","type":"stable","version":"8.5.53"},{"url":"https://github.com/sebastianbergmann/phpunit/releases/tag/13.2.2","date":"2026-06-29T13:38:23Z","type":"stable","version":"13.2.2"},{"url":"https://github.com/sebastianbergmann/phpunit/releases/tag/13.2.1","date":"2026-06-15T13:17:06Z","type":"stable","version":"13.2.1"},{"url":"https://github.com/sebastianbergmann/phpunit/releases/tag/12.5.30","date":"2026-06-15T13:14:35Z","type":"stable","version":"12.5.30"},{"url":"https://github.com/sebastianbergmann/phpunit/releases/tag/13.2.0","date":"2026-06-05T03:14:45Z","type":"stable","version":"13.2.0"},{"url":"https://github.com/sebastianbergmann/phpunit/releases/tag/13.1.14","date":"2026-06-04T06:18:17Z","type":"stable","version":"13.1.14"}]` | - |
| security.disclosure_policy | yes | - |
| security.scorecard | 4.5 | 7.8 |
| security.vulnerabilities | `{"count":4,"source":"https://advisories.ecosyste.ms/api/v1/advisories?ecosystem=packagist&package_name=phpunit%2Fphpunit&per_page=100","last_12m":3,"max_severity":"CRITICAL"}` | `{"count":0,"source":"https://advisories.ecosyste.ms/api/v1/advisories?ecosystem=nuget&package_name=python&per_page=100","last_12m":0,"max_severity":null}` |

## Capabilities (Testing Tools)

| Capability | PHPUnit | unittest |
|---|:--:|:--:|
| **Core** |  |  |
| Test types | Unit | Unit |
| Browser automation | - | - |
| Built-in assertion library | - | ✓ |
| Languages | PHP | Python |
| **Isolation** |  |  |
| Mocking / stubbing | - | ✓ |
| **Techniques** |  |  |
| Snapshot testing | - | - |
| **Performance** |  |  |
| Parallel execution | - | - |
| **Insight** |  |  |
| Code coverage | ✓ | - |
| **DX** |  |  |
| Watch mode | - | - |
| **Ops** |  |  |
| CI integration | - | ✓ |

*Source: Vioscale. Generated 2026-09-01T17:12:24.916Z. "-" = undocumented, not absent.*
