# JUnit vs PHPUnit

**Leader by Vioscale score:** JUnit

| Attribute | JUnit | PHPUnit |
|---|---|---|
| **Vioscale score** | 67 (43% (low)) | 62 (33% (low)) |
| activity.commits_last_30d | 78 | 100 |
| adoption.dependent_repos | 569 | 777,462 |
| adoption.github_stars | 7,041 | 20,045 |
| deployment.options | `{"cloud":true,"self_hosted":true}` | `{"self_hosted":true}` |
| description.long | A modern testing framework for Java that provides a foundation for developer-side testing and supports multiple testing approaches. | PHPUnit helps developers verify their PHP code through automated unit testing. It provides a framework for writing, organizing, and running tests. |
| features.capabilities | `{"languages":"Java","assertions":true,"test_types":"unit","ci_integration":true}` | `{"coverage":true,"languages":"PHP","test_types":"unit"}` |
| language.primary | Java | PHP |
| license.spdx | EPL-2.0 | BSD-3-Clause |
| market.availability | `{"primaryMarkets":[],"availabilityScope":"global","availableCountries":[],"notAvailableCountries":[]}` | `{"primaryMarkets":["DE"],"availabilityScope":"global","availableCountries":[],"notAvailableCountries":[]}` |
| platform.support | `{"cli":true}` | `{"cli":true}` |
| pricing | `{"type":"open_source","freeTier":true,"sourceUrl":"https://junit.org","retrievedAt":"2026-08-14T11:07:09.209Z"}` | `{"type":"open_source","sourceUrl":"https://phpunit.de","retrievedAt":"2026-08-13T23:02:05.270Z"}` |
| pricing.free_tier | yes | - |
| pricing.model | commercial | open_source |
| pricing.price_level | free | free |
| pricing.transparent | yes | - |
| release.cadence_days | 16 | - |
| release.history | `[{"url":"https://github.com/junit-team/junit-framework/releases/tag/r6.1.3","date":"2026-08-07T13:11:01Z","type":"stable","version":"r6.1.3"},{"url":"https://github.com/junit-team/junit-framework/releases/tag/r6.1.2","date":"2026-07-12T13:08:55Z","type":"stable","version":"r6.1.2"},{"url":"https://github.com/junit-team/junit-framework/releases/tag/r6.1.1","date":"2026-06-28T10:11:16Z","type":"stable","version":"r6.1.1"},{"url":"https://github.com/junit-team/junit-framework/releases/tag/r6.1.0","date":"2026-05-19T19:54:34Z","type":"stable","version":"r6.1.0"},{"url":"https://github.com/junit-team/junit-framework/releases/tag/r5.14.4","date":"2026-04-26T11:59:08Z","type":"stable","version":"r5.14.4"},{"url":"https://github.com/junit-team/junit-framework/releases/tag/r6.1.0-RC1","date":"2026-04-25T12:42:19Z","type":"prerelease","version":"r6.1.0-RC1"},{"url":"https://github.com/junit-team/junit-framework/releases/tag/r6.0.3","date":"2026-02-15T15:20:56Z","type":"stable","version":"r6.0.3"},{"url":"https://github.com/junit-team/junit-framework/releases/tag/r5.14.3","date":"2026-02-15T13:27:11Z","type":"stable","version":"r5.14.3"},{"url":"https://github.com/junit-team/junit-framework/releases/tag/r6.0.2","date":"2026-01-06T17:08:43Z","type":"stable","version":"r6.0.2"},{"url":"https://github.com/junit-team/junit-framework/releases/tag/r5.14.2","date":"2026-01-06T17:07:49Z","type":"stable","version":"r5.14.2"},{"url":"https://github.com/junit-team/junit-framework/releases/tag/r6.1.0-M1","date":"2025-11-17T17:35:56Z","type":"prerelease","version":"r6.1.0-M1"},{"url":"https://github.com/junit-team/junit-framework/releases/tag/r6.0.1","date":"2025-10-31T18:13:15Z","type":"stable","version":"r6.0.1"},{"url":"https://github.com/junit-team/junit-framework/releases/tag/r5.14.1","date":"2025-10-31T15:21:48Z","type":"stable","version":"r5.14.1"},{"url":"https://github.com/junit-team/junit-framework/releases/tag/r6.0.0","date":"2025-09-30T08:38:19Z","type":"stable","version":"r6.0.0"},{"url":"https://github.com/junit-team/junit-framework/releases/tag/r5.14.0","date":"2025-09-30T07:49:49Z","type":"stable","version":"r5.14.0"},{"url":"https://github.com/junit-team/junit-framework/releases/tag/r5.14.0-RC1","date":"2025-09-23T14:50:27Z","type":"prerelease","version":"r5.14.0-RC1"},{"url":"https://github.com/junit-team/junit-framework/releases/tag/r6.0.0-RC3","date":"2025-09-14T12:30:27Z","type":"prerelease","version":"r6.0.0-RC3"},{"url":"https://github.com/junit-team/junit-framework/releases/tag/r6.0.0-RC2","date":"2025-08-25T16:00:56Z","type":"prerelease","version":"r6.0.0-RC2"},{"url":"https://github.com/junit-team/junit-framework/releases/tag/r6.0.0-RC1","date":"2025-08-20T08:38:19Z","type":"prerelease","version":"r6.0.0-RC1"},{"url":"https://github.com/junit-team/junit-framework/releases/tag/r6.0.0-M2","date":"2025-07-22T08:54:16Z","type":"prerelease","version":"r6.0.0-M2"}]` | `[{"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 | 8.3 | 4.5 |
| security.vulnerabilities | `{"count":0,"source":"https://advisories.ecosyste.ms/api/v1/advisories?ecosystem=maven&package_name=org.junit.platform%3Ajunit-platform-surefire-provider&per_page=100","last_12m":0,"max_severity":null}` | `{"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"}` |

## Capabilities (Testing Tools)

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

*Source: Vioscale. Generated 2026-09-01T15:00:30.749Z. "-" = undocumented, not absent.*
